Get theme info from style.css If you want to show theme infos in your template you can grab them with...
Modify “Category:” from the_archive_title This function jumps into the hook the_archive_title to help you to modify the default output...
Add parent page slug to the body class Use custom css stylings for parent \ sub page sections. This function adds "section-slug" to...
Shorten category classes in post_class Using post_class prints all category slug names the post belongs to. This may lead to...
Return permalink with page slug A handy snippet if you need to use a permalink url in your theme files....
Dynamically use parent template for child pages If you use a specific template for a parent page this function automatically uses this...
Check if post has a gallery A simple check if the current post\page has a gallery shortcode within the post_content. Show...
Echo post content by post ID If you need to get content from a specific page or post in your template...
Add bootstrap classes for WP tables Bootstrap requires custom table classes. If a table is added to the_content this function with...
Show total post count in template Use this snippet in your template to show the total post count. Check out the...