Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • not working for me on 3.0.1

    Thread Starter lifeless85

    (@lifeless85)

    I’ve solved my issues by doing two custom query, and getting some info from wp with:
    $sticky=get_option('sticky_posts');
    the first query with theese parameters:

    $args=array(
    	'category_name'=>'special-offers',
    	'showposts'=>2,
    	'post__in' => $sticky,
    	'caller_get_posts' => 1,
    	'orderby'=>'meta_value',
    	'meta_key'=>'from',
    	'order'=>'ASC'
    );

    the second one with:

    $args=array(
    	'category_name'=>'special-offers',
    	'showposts'=>2,
    	'post__not_in' => $sticky,
    	'caller_get_posts' => 1,
    	'orderby'=>'meta_value',
    	'meta_key'=>'from',
    	'order'=>'ASC'
    );

    but that lead to the discover of a new bug !
    but there’s a work around … you need at least one stiky post, because of how post__in option is managed … i’ll post a link to the trak

Viewing 2 replies - 1 through 2 (of 2 total)