Quantcast
Channel: Snippets Archive - Fewer Than Three
Viewing all articles
Browse latest Browse all 12

Filter Genesis Post Info for Post Types Without an Author

$
0
0

Problem

Genesis Post Info is the information about the post (post date, author, comments) that typically displays just below the title on your posts.

If you have a Post Type that doesn’t support an “Author” for the post, the post info will display the “by” component followed by an empty block.

Solution

Check the current post type to see if it supports authors. If it doesn’t, don’t include the “by” component of the Genesis post info.

The post Filter Genesis Post Info for Post Types Without an Author appeared first on Fewer Than Three.


Viewing all articles
Browse latest Browse all 12

Trending Articles