sebastienroche
Forum Replies Created
-
Thank you.
It is exactly what I was looking for.
Sebastien.Just to give a better explaination. I would like to do the following inside the loop:
if post is from category=78
then display<div id="authorbox"> <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_email(), '80' ); }?> <div class="authortext"> <h4>Article de <?php the_author_posts_link(); ?></h4> <p><?php the_author_description(); ?> Articles : <?php the_author_posts(); ?></p> </div> </div>
endif
Sebastien.
Forum: Fixing WordPress
In reply to: Show Author Count with link to the Author’s post pageThis is exactly what I was looking for!
The final code I used is
<a href="<?php echo get_author_posts_url( $post->post_author ); ?>"><?php the_author_posts(); ?></a>
since I just wanted the number of post as a link.Thank you again for your help.
Sebastien.Thank you MichaelH, I am trying to call the code above for any post from category 78 anywhere in my blog.
Just to explain, category 78 is the category used for multi author purposes, all other categories are from only one author. I don’t like to create a specific page with a given template that would include the code above just to call the post from category 78, I would like to show the author bio block for only all posts from category 78 anywhere in my blog.
Tell me if this is possible…
Thank you for your help.
Sebastien.Forum: Fixing WordPress
In reply to: Show Author Count with link to the Author’s post pageThank you so much for the answer.
@michaelh: The Tag
<?php the_author_posts(); ?>
does already the job I was looking for. The code you gave me does the same -1 post. But thank you for the answer.@t31os_: The Tag
<?php the_author_posts_link(); ?>
gives you the author’s name with a link<a>
to the page https://mydomain.com/?author=x ; x being the ID of the author of the article. What I am looking for is to have the same link<a>
when using the Tag<?php the_author_posts(); ?>
. I don’t know how to call the author’s ID to create the hyperlink to its posts list.Thank you again for your help.
Sebastien.