WordPress.org

Forums

Clean My Archives
Doesn't work in WP 3.3 (4 posts)

  1. Doug
    Member
    Posted 3 years ago #

    Dies before any output is pushed to the screen with:

    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

    http://wordpress.org/extend/plugins/clean-my-archives/

  2. Doug
    Member
    Posted 3 years ago #

    Cleared that problem up but still no output.

    Hmm.

  3. Doug
    Member
    Posted 3 years ago #

    Breaking it up into separate years seems to have fixed this issue, since I have 10 years of posts to account for...

    Seems to be working now.

  4. huuthinh
    Member
    Posted 2 years ago #

    Fix it.

    In your theme, you use

    $args = array(
                                'category__in' => array(12,13,19,153),
                                'posts_per_page' => 10,
                                'post__not_in' => get_option('sticky_posts'),
                                'paged' => curPageURL(),
                                'caller_get_posts'=>1
                                );

    replace 'caller_get_posts'=>1 by 'ignore_sticky_posts' => 1

    See more http://thinhseven.com/wp_query-was-called-with-an-argument-that-is-deprecated-since-version-3-1/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic