Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter valley_bird

    (@valley_bird)

    hi bdbrown, i thought of a function as well,

    while

    $args = array(
    	'cat'=> ot_get_option('featured-category'),
      'caller_get_posts' => 1
    );
    
    if ( $paged > 1 ) {
      $args['paged'] = $paged;
    }
    
    $my_query = new WP_Query($args); ?>

    hels me to just dislay featured posts, i don’t know what to replace 'cat'=> ot_get_option('featured-category'), with to show posts from a category,

    i tried in_category funcion, bu did’t manage to filter any posts ….

    seems like i’m not quite there, still very thankful for help

Viewing 1 replies (of 1 total)