Support » Theme: Attorney » slider on selected category

  • Please tell me how to restrict homepage post slider to a selected category.

    I tried <?php query_posts( ‘cat=3’ ); ?>.. but it did not work in
    alt_homepage_blog_slider.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would love to know the answer to this as well! Oprone, did you ever find out an answer?

    Found the solution:
    in alt_homepage_blog_slider.php find

    <?php $args = array( 'posts_per_page' => 10, 'post_status' => 'publish',

    ad after:
    'cat' => '1',

    Then find:
    <?php /* Start the Loop */ ?> <?php while ( $fPosts->have_posts() ) : $fPosts->the_post(); ?>

    Replace by:
    <?php query_posts("cat=1"); while ( $fPosts->have_posts() ) : $fPosts->the_post(); ?>

    Now is category 1 the featured category for your slider.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘slider on selected category’ is closed to new replies.