Howdy, Stranger!

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


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?
  • Add this additional argument to query_args:

    'ignore_sticky_posts' => 1