[Conditional display] Display code for one Category only on archive page
-
Hi,
I want to get my blog to the multi author stage now and have created a Author bio block that I would like to call for only one category of posts. How can I do that?
Here is tha code I would like to show after my Content or / and excerpt. The category I would like to trigger is 78 for the example.
<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>
Thank you for your help. Sebastien.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Conditional display] Display code for one Category only on archive page’ is closed to new replies.