How do I get WordPress authors to show on posts and not pages
August 3, 2012 1:15 PM Subscribe
WordPressFilter: How can I make a WordPress author have their name show up in the
posts they make, but not the
pages they make?
So I have a website that is basically a customized theme for Wordpress. It's mostly used as a static site, but I'd like to extend the blog functionality, and will have multiple authors writing in this blog. But when I try to insert the code I've found into what I think is the proper php page (it's custom and called loop-page.php - the actual code references the_author_posts_link and works), it shows the author's name at the top of every single page. I really only want it displayed on the blog pages - I can provide some php code samples or do some wading through the code if anyone thinks they know how to fix this...
Of course if anyone has other solutions to this problem, I'm all ears! Basically, I just want to get rid of all author information on static pages, but keep author information for my new blog setup. Thanks!
posted by antonymous to computers & internet (10 answers total) 2 users marked this as a favorite
http://codex.wordpress.org/Conditional_Tags
The most likely to help you is is_page()
http://codex.wordpress.org/Function_Reference/is_page
posted by RobotHero at 1:43 PM on August 3, 2012