Genesis multiple category custom loop 404s after first page

Provided category names are not changing, and the site is in one language only, you could create two category templates: category-news.php and category-press-releases.php, then everything will pretty much work without you having to fetch the category and including the category__in parameter in the query. Also, you always want to put your add_action calls inside your … Read more

How can I paginate this?

Well, I see three posts! 🙂 Just an idea, but maybe you only need to add the next/prev links? http://codex.wordpress.org/Function_Reference/posts_nav_link Edit: This (http://streakingpirates.com/pending/page/2) works for me, so I guess it must be the links you’re after!

show random image in loop if image is not set

My solution was really simple: $input = array(“defaultImage1.jpeg”, “defaultImage2.jpeg”, “defaultImage3.jpeg”, “defaultImage4.jpeg”, “defaultImage5.jpeg”, “defaultImage6.jpeg”); $rand_keys = array_rand($input, 2); echo ‘<img class=”story-carousel” src=”‘.$upload_dir[‘url’].”https://wordpress.stackexchange.com/”.$input[$rand_keys[0]].'” alt=””>’;

How to target thumbnails of the first post in the loop

You can get first post class similarly as you are adding last post class. In last post case, you were checking if current_post number is equal to post_count. But in this case when we want to get first post, we will check if current_post number in loop is equal to 0 or not. <?php $extraFirstClass … Read more