Recent Articles

Prevent output of entry footer markup when empty

WordPress themes typically include the following information in a post’s entry footer: categories, tags, and an edit link.

But what if this post is published on a non-categorized blog, has no tags, and the user looking at it does not have permission to edit the post?

If so, we want to make sure entry footer markup is not output to the page to to keep our code clean, and prevent unexpected styles from appearing.