WordPress.org

Ready to get started?Download WordPress

Forums

Select Featured Posts
caller_get_posts Deprecated (6 posts)

  1. 32spokes
    Member
    Posted 3 years ago #

    I currently have a local install of WordPress 3.1 RC1 and I got this warning when I activated the widget in my side bar.

    Notice: WP_Query was called with an argument that is deprecated since version 3.1! "caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead. in …/wp-includes/functions.php on line 3376

    In the plugin file select_featured_posts.php on line 183 and line 185 change the "caller_get_posts=1" to "ignore_sticky_posts=1" and the plugin will work fine.

  2. stvcg00
    Member
    Posted 3 years ago #

    I am getting this "notice" to... did you figure out how to remove it?

  3. stvcg00
    Member
    Posted 3 years ago #

    opps I found it =O)

  4. son0fhobs
    Member
    Posted 2 years ago #

  5. buditanrim
    Member
    Posted 2 years ago #

    Hi I also have the same issue, how to solve it?

  6. fallinov
    Member
    Posted 2 years ago #

    My solution :

    //Query cats (minus exclude cat)
    $pCats = '5,-7,-8';
    //Post to exlude
    $pTabEcludePost = array(get_the_ID(),8,9)

    $params = array (
    'cat'=> $pCats,
    'post__not_in' => $pTabEcludePost,
    'posts_per_page' => 5,)

    query_posts($params);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic