How to order posts by meta_value and title
How to order posts by meta_value and title
How to order posts by meta_value and title
Filter wordpress post categories with jquery/ajax and pagination?
List authors with the last post title and order by last post date
Posts published last 10 minutes
Query most popular terms by taxonomy over 2 week period
Does the WP_Query ‘private’ argument for post status only apply to privately published content?
This loop starts by fetching all posts in given category. then goes through each tag of current post, fetches the posts for each tag, and if all of the posts have 0 or 1 category, prints that category. So, if you have lots of tags, lots of posts, this could be slow-ish. function wa_60126_pl8_artist_list($catname) { … Read more
You need to post the query code of both the post query and the gallery query; no one can really make a guess otherwise. You can try using <?php wp_reset_query(); ?> after the post query to force a reset. See http://codex.wordpress.org/Function_Reference/wp_reset_query
Figured it out myself, for anyone else that needs help here are the two options.. <!–Method 1–> <?php $query = new WP_Query(); $query->query(‘post_type=page&p=’ . of_get_option(‘slide_page1’));while ($query->have_posts()) : $query->the_post(); ?> <?php the_title(); ?> <?php endwhile; wp_reset_query(); ?> <!–Method 2–> <?php $slide1 = of_get_option(‘slide_page1’);?> <?php $loop = new WP_Query( array(‘p’ => $slide1, ‘post_type’ => array(‘post’, ‘page’), )); … Read more
For other people with the same issue who don’t read comments the solution was to change the hook from wp_head to get_header