Wordpress help

Discussion in 'HTML & Website Design' started by Jeehan, Jun 26, 2008.

  1. #1
    How can I only show the full view of latest post and summery of other posts at the home page?

    Thank you.
     
    Jeehan, Jun 26, 2008 IP
  2. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It depends on your template, but the general format:

    Look for the line (or similar to):

    	while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;	
    Code (markup):
    And before it, put "$postage_meter = 0;" without quotes.

    Then, inside the loop (after the ?> below the while line):

    
    $postage_meter++;
    if($postage_meter==1){
       [code to display first post]
    }
    else{
       [code to display other posts]
    }
    
    Code (markup):
    Hope that helps.
     
    Ulquiorra, Jun 26, 2008 IP
  3. Jeehan

    Jeehan Well-Known Member

    Messages:
    1,578
    Likes Received:
    31
    Best Answers:
    1
    Trophy Points:
    115
    #3
    Thank you. I will try.
     
    Jeehan, Jun 26, 2008 IP