0
votes
3answers
177 views

2 wordpress loops showing 1 post from same post type - how to avoid showing the same post?

I got to two loops in my template files. Both querying the same thing essentially. This loop in my header: $testimonial_head = new WP_Query(array( 'posts_per_page' => 1, 'post_type' ...
0
votes
1answer
166 views

Wordpress Queries Not Working?

//Display All Reviews function display_all_reviews( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'tag', 'reviews' ); } } add_action( ...
0
votes
3answers
418 views

Sidebar limiting to 10 posts?

I have the following code inside my single.php page: UPDATED CODE <?php if (have_posts()) : the_post(); $post_id = get_the_ID(); if ( is_single() ) { $cats = get_the_category(); ...
0
votes
1answer
171 views

Multiple loops breaking side bar

Trying to put a bunch of loops in the side bar using WP_query. <div id="FL-pest-libray-sidebar"> <?php $category_query_string = new WP_Query(array( 'post_type' => 'page' , ...