The following bit of code results in a duplicate attribute site validation error. This template script: <div class="clearfix" <?php post_class() ?>> produces this source output: <div class="clearfix" class="post-263 post...
Im having a problem with my menu and custom post type. I have a custom post type of “services”. I have created new page for it called Services. On...
I’m working on a child theme and while everything works the Walker_Nav_Menu and Walker classes are causing all the fuss. My parent theme overrides Walker_Nav_Menu as below: if (...
I am trying to adapt the WordPress loop to style posts differently in rows that get infinitely smaller until all posts are displayed The concept here is to display...
Simple shortcode function : function my_shortcode_function($atts,$content=null){ // Do something return $content; } add_shortcode('my_shortcode','my_shortcode_function'); I wonder how to add more extra body class when user use this shortcode in contents....
I need to have an alternating (even, odd…) class on posts to provide alternate highlights on a column. The best thing would be to attach this to the post_class()...
I want to remove the default body class on the theme and add a new class. I use this code to do this: //REMOVE / ADD HOME CLASS FROM...
I am trying to add the parent category class in post_class() of some posts from one of my subcatgories. I have an advanved theme so I need to style...
I just want to add a class for the active page in the wp_list_pages().Is it possible? If so can I provide a particular class for a active page. Here...
I am trying to set up a featured content section of my blog. This will contain two sticky posts. I have a custom loop which will only display the...