Custom order for Mysql array

At first glance, I would think your query isn’t correct. Are you echoing out the variables to make sure they are correct? If you are setting ‘post_per_page’ => 4 and you are getting 5 posts, then something seems a bit off. Where it is a number, I believe you can leave off the quotes around … Read more

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