Tag Archives: existance

content-tree

Snippet: True in_category Conditional function

This is an advanced version of default in_category function. This function not only check for existance of post in the specified categories but also in all the subcategories down in the tree. It has same in_category parameters So you can use it in replacement of in_category.

Snippet: Check current post for the existence of a short code

If you want to check if a short code exists before performing some action. `has_shortcode` is a custom function that will check short code’s availability.