Multiple Orderby’s using random order WP_Query

I ran your query and got … ORDER BY wp_postmeta.meta_value+0,RAND() DESC … which is what I expected. If I am reading your question correctly, what you want is … ORDER BY wp_postmeta.meta_value+0 DESC,RAND() … as in this question at SO. That should sort by meta_value first and then randomize any second level ordering that is … Read more

change recent posts based on category

You’re always displaying the posts from the category “category1” because that’s what you’ve written in your code here $rPosts->query(‘showposts=4&category_name=category1′); If you want to just go to the category archive pages you can do that by generating the links with get_term_link. This function goes at the position where you’re displaying the links & then this code … Read more

twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade

This code didn’t change since Twenty Eleven’s initial release. Navigation is only printed if your query has more than one page. Could that be it? Since you are calling $wp_query->have_posts() rather than have_posts(), this suggests you are modifying or overriding the query, which may be confusing WordPress (and it’s not WP’s fault). (See When should … Read more