Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter


Welcome to the new Community Forums!

Existing Users: As an additional security precaution measure, please reset your password and login with your new password given to you via your email.

New Users: You are required to link with either your Facebook, Twitter, Google or OpenID account to register.

If you have any other issues, please send the administrator an email at support [ a t ]
Custom Query Problem
  • Hi,

    i try to display some posts on a custom page (bookmarks.php) and use the following code:

    if (get_the_id()==578)
    $posts = query_posts( array( 'post__in' => $bookmarks ) );

    ar2_render_posts( null, array (
    'type' => ar2_get_theme_option( 'archive_display' ) ,
    'query_args' => array( 'post__in' => $bookmarks ),
    ), true );

    if i control my results with an "print_r($posts);" the i found the right results ... but ar2_render_posts put the results +some other posts out.

    I did not find the point where the results are modified.

    Best regards
  • oh my god. i searched the whole day and now i found the problem: all additionaly posts were sticky. How can i disable sticky posts on such querries?
  • zyzy
    Add this additional argument to query_args:
    'ignore_sticky_posts' => 1