Support

Account

Home Forums General Issues How to show older field from same category Reply To: How to show older field from same category

  • I’m not completely sure what you’re trying to do, so I’m assuming some things.

    
    <?php 
      $count = 0; // keep track of how many posts were shown
      // the standard WP loop
      if (have_posts()) {
        while(have_psits()) {
          the_post();
          $count++; increment count
          if ($count == 1) {
            // showing first post
            // code here to show fields A & B
          } else {
            // showing older posts
            // code here to show fields x & y
          }
        }
      }
    ?>