Support » Fixing WordPress » Conflict with WP_Query content

  • Hi all,

    When I have the following php call in my home.php file and the viper Plugin is activated, the home page does not display the slider. If I deactivate the viper plugin, the slider displays.

    $slider_query = new WP_Query($query_string.’&posts_per_page=-1′);
    if ($slider_query -> have_posts()) : while ($slider_query -> have_posts()) : $slider_query -> the_post();
    $featured = get_post_meta($post->ID, ‘featured’, $single = true);
    $featured_image = get_post_meta($post->ID, ‘featured_image’, $single = true);
    if($featured ==’1′){?>

    Many thanks!

  • The topic ‘Conflict with WP_Query content’ is closed to new replies.