Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Author name and bio in only one parent category. (http://forum.bytesforall.com/showthread.php?t=6153)

ortixia Mar 4, 2010 02:51 PM

[SOLVED] Author name and bio in only one parent category.
 
i would like to amend the code for the single post byline to show authors name, only for certain categories. As well, i would like the authors description/bio at the bottom of these posts.

I have two main categories in my site. One is "projects". the other is "articles". I need the articles to feature authors, but not the projects.

Would you know where/how i could amend the code to do this, or is there a plug-in i could use.

thank you once again. This is the best theme ever.

juggledad Mar 5, 2010 04:58 AM

take a look at ATO->Edit POST/PAGE INFO ITEMS you can set what ever you want (of the options) in what ever section you want. If you look at the lines just about 'KICKER: Homepage' you will see you can even add a php IF statement to put in the logic to control what shows when

ortixia Mar 5, 2010 02:26 PM

okay...
i am still learning ...
the syntax doesn't seem right here.... but how would you work with this?

<?php if ( in_category(15)) %author-link% ?>

juggledad Mar 5, 2010 07:35 PM

try it like this
<?php if ( in_category(15)) { ?> %author-link% <?php }; ?>

ortixia Mar 8, 2010 02:00 PM

This works great. Thank you so much.


All times are GMT -6. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.