Results 1 to 2 of 2

Thread: Number of thumbs in front page

  1. #1

    Number of thumbs in front page

    Is it possible to limit the numbers of thumbs in the front page?
    I mean i post a new article and it replaces the oldest?


  2. #2
    Hi Thomas,

    This is possible - in the 'front-page.php', set the desired number in this code:

    $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
    query_posts(array('post_type' => 'portfolio', 'works' => $term->slug, 'posts_per_page' => 18));

    You'll see I've set my front page to only load 18 posts and I've set the publishing dates on each post as per the order I want them to appear in.

    Hope that helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts