• Resolved Ted Slater

    (@tedslater)


    I’m seeing the following PHP error on one of my sites:

    The WPP_Query class has been deprecated since 5.0.0. Please use \WordPressPopularPosts\Query instead

    I do have this PHP code in a spot on posts:

    $args = array(‘post_type’ => ‘post’, ‘range’ => ‘daily’, ‘limit’ => 1);
    $popular_posts = new WPP_Query( $args );

    If I can no longer use WPP_Query, how might I rewrite that line of code so it doesn’t kick out an error?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPP_Query class has been deprecated’ is closed to new replies.