WordPress.org

Ready to get started?Download WordPress

Forums

Changing Pagintation pages template (3 posts)

  1. Jay Hoffmann
    Member
    Posted 1 year ago #

    Hello,

    I'm working on a site right now and I have a homepage hardcoded in using index.php with a loop of some recent posts.

    At the bottom, I am using

    <div>
    <div><?php previous_posts_link('← Previous Post') ?></div>
    <div><?php next_posts_link('Next Post →') ?></div>
    </div>

    for pagination. What I was wondering was how to make pages other then the index page (in other words http://www.mydomain.com/page/2, http://www.mydomain.com/page/3, etc.) look different then index.php. Is that at all possible? There is some featured things I would like to remove from the homepage. Unfortunately, I am developing this on a localhost so I can't link to it, but I'd be happy to post more code here if that would help.

    Thanks

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    With conditional tags such as (examples):

    is_paged

    is_home

    is_front_page

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    look different then index.php

    if 'different' only refers to formatting, try to work with the body_class() output .paged for the paginated pages.

    http://codex.wordpress.org/Function_Reference/body_class

Topic Closed

This topic has been closed to new replies.

About this Topic