• Hello Below is the present code

    if(get_option('pyre_featured_slider') == 'On' && get_option('pyre_featured_tags')):
    $post_types = get_post_types();
    unset($post_types['page'], $post_types['attachment'], $post_types['revision'], $post_types['nav_menu_item']);
    $featured_posts = new WP_Query(array('post_type' => $post_types,'showposts' => 5,'tag' => get_option('pyre_featured_tags')));

    This code is pulling post for slider , post who have a particular tag

    I need to change this post into pages and need to pull pages from a particular category, Do let me know the equivalent code to pull pages from a particular category

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Pulling pages from a category’ is closed to new replies.