PHP warnings when using CRP_Query
-
Thanks for the great plugin!
I use CRP_Query in one of my templates. It sometimes works, but sometimes throws a bunch of PHP warnings. Any idea what am I doing wrong?Here’s the code:
if(class_exists('CRP_Query')) : $args = array( 'posts_per_page' => 6, 'ignore_sticky_posts' => true, 'no_found_rows' => true ); // The Query. $recommended_posts = new CRP_Query( $args ); if($recommended_posts->have_posts()) : while($recommended_posts->have_posts()) : //do something endwhile; endif; endif;
And the warnings from Query Monitor:
View post on imgur.com
I must be doing something wrong, would appreciate your advice on how to fix it.
Thank you, appreciate your support!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP warnings when using CRP_Query’ is closed to new replies.