I’ve only just realised that custom post types don’t appear to output the category as […]
Tag: post-class
different post-class when template is loaded via ajax
my event-item.php <?php /** * The event template */ ?> <li> <article id=”event-<?php the_ID(); ?>” […]
current-menu-item class for custom post type parent
Im having a problem with my menu and custom post type. I have a custom […]
Add class to the items in wp_list_pages
I just want to add a class for the active page in the wp_list_pages().Is it […]
How to assign classes to all elements?
Is it possible to assign classes to elements of certain type? For example, all paragraphs […]
Output terms to post_class()
I am trying to output all terms attached to a specific post (including custom taxonomy […]
How do I add a custom body class for a specific page ID?
I have added this code to my child theme’s functions.php file and use the new […]
Add a class to post title if a link ends with a certain extension
I am using a Page Links To plugin that allows me to link the post […]
How to use post_class function?
I would like to use this function, but I don’t know correctly what is the […]
Child Pages Loop
If anyone can help that’d be great. I’ve found a snippet of code that I’ve […]
No More Posts Available.
No more pages to load.