Results 1 to 2 of 2

Thread: Number of thumbs in front page

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3

    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?

    Regards
    Thomas

  2. #2
    Junior Member
    Join Date
    Jul 2011
    Posts
    9
    Hi Thomas,

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

    <?php
    $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
  •