Issue where WP Featured Image will not display

Let’s examine the differences between the working and the not-working code: Working: has_post_thumbnail( $post->ID ) Not Working: get_the_post_thumbnail(); The only difference I see is that you’re passing the $postID explicitly to the working function, and not passing it to the non-working function. So, try this: get_the_post_thumbnail( $post->ID, ‘medium’ ); You can var_dump() or echo it … Read more

date issue with category post retrival

Ok I finally found the answer. The issue was caused by a strange enclosures from the podcasting plugin. Removed the enclosure and BAM everything is fine now! The main think to notice: if you have such a problem, your feed is probably invalid. Validate your feed first and then see if there are any problems … Read more

How can I hide tags on a child-category page, if that tag has not been used?

Yay, thanks to the help of a co-worker, I now have a solution to this 🙂 Tertiary navigation for the tags (templates/nav-tags.php): // only load tags from the current page $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘easy_steps’, ‘paged’ => $paged, ‘category__in’ => ($cat), ); $second_query = new WP_Query( $args … Read more

Dynamic dependent Dropdown lists for categories, sub-categories and posts

you may find your answer here and Here’s a demo of it. HTML code example <div class=”ccms_form_element cfdiv_custom” id=”style_container_div”> <label for=”brand”>Make:</label> <select size=”1″ id=”make” class=” validate[‘required’]” title=”” onChange=”updatepage();” type=”select” name=”style”> <option value=”-1″>–Choose a Make-</option> <option class=”Audio” value=”Audi”>Audi</option> <option class=”BMW” value=”BMW”>BMW</option> </select> <div class=”clear”></div><div id=”error-message-style”></div> <div id=”style-sub-1″ class=”BMW” style=”display: none;” name=”stylesub1″ onchange=”ChangeDropdowns(this.value)”> <label for=”brand”>Model:</label> <select name=”cat” … Read more

remove post and categories/tags count from right now dashboard widget

There is no filter in PHP, so we have to use JavaScript: add_action( ‘admin_footer-index.php’, ‘wpse_82132_hide_rows’ ); function wpse_82132_hide_rows() { $rows = array ( # ‘posts’, # ‘pages’, ‘cats’, // meoww! ‘tags’, # ‘comments’, # ‘b_approved’, # ‘b-waiting’, # ‘b-spam’, ); $find = ‘.’ . join( ‘,.’, $rows ); ?> <script> jQuery( function( $ ) { … Read more