Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SharkBait

    (@sharkbait)

    So can this not be done properly?

    I can not seem to check if the visiting page the person is one the main page or page 1.

    On the front page of the site I am wanting to create it so it shows most recent post on the top, then splits into two columns and shows excerpts of the next 4 posts.

    If they click on the Previous Page or Next Page they see the full posts (3 per page)

    so pseudo:

    if(page == 1 || page == front page) {
      // Display modified loop
    } else {
      // Display regular wordpress loop
    }

    Would I just check to see if is_page() less than 2? Or does this not clear enough in what I am looking to do?

    Thanks

    Thread Starter SharkBait

    (@sharkbait)

    Alright I had to mickeymouse it but I figured it out

    $pages = explode("/", $_SERVER['REQUEST_URI']);
    $count = count($pages)-1;
    if($pages[$count] < 2)) {
       // Show modified posts
    } else {
      // Show the full posts in /page/2, page/3 etc
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘index page modifcation’ is closed to new replies.