How to create authors page, to display all with author role

Posted in: Newspaper
Post count: 61

Hi, I see by default we have this structure in breadcrumbs: Home -> Authors-> Posts by Author
I want to create Authors page, and list on it all users with “author” role, with small bio and maybe posts counts.
Tried to create Authors page, and filtering authors using “[td_block_authors]” but it not accessible by clicking on Authors link on breadcrumbs
authors

Thanks

Post count: 35449

Hi,

In order to achieve a link to authors pages, you need to do the follow steps.
1. Create a Authors page were to show all authors.
https://www.screencast.com/t/DUTPIZoqXu
2. Go to tagDiv Cloud Library and get a custom template for authors, and add to it the breadcrumbs and set on them the link to the authors page you create above.
https://www.screencast.com/t/jmmu9BQPkJ
Save the template.
3. Set the template
https://www.screencast.com/t/7TDgXthFoOK
Now you can try to see if the breadcrumbs works!

Thank you.

Post count: 61

Thanks, Calin. This worked. How I add few latest articles next to the author name on page with authors box, like here?

Authors

Thanks

  • This reply was modified 7 years by pbc.
Post count: 61

I found this solution

here

Code provided:

$buffy .= '<div class="td-authors-url">';
$last_article = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_author = %d AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 1", $td_author->ID), ARRAY_A);
$buffy .= '' . $last_article['post_title'] . '';
$buffy .= '</div>';

But in result I want few clickable links to latest article by the author.

Thanks

  • This reply was modified 7 years by pbc.
Post count: 35449

Hi,

In order too get a clickable link you need to add this
$buffy .= '' . $last_article['post_title'] . '';
In href you need to set the url get for each posts.

Thank you for your understanding.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.