WordPress.org

Ready to get started?Download WordPress

Forums

paginated page layout (3 posts)

  1. digitalmovement
    Member
    Posted 3 years ago #

    I dont know if this is possible, but i am looking for this a couple of days now.
    What i want to do is this, i have a category where i use a script to style my first post different then the rest, and then 4 "normal" posts.
    So the latest item will really stand out.
    But because the page is paginated, on the follow-up pages it uses that same first item script again. So item 6 (not so important anymore

    So what i want to know is, is it possible to create a different layout for the follow-up pages?

    Can't send a link, still testing local.

    Hope anyone knows what i mean.

    Thanks in advance,
    Remy

  2. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    You need to make use of the $paged global variable. For example (untested):

    global $paged;
    
    if ( ! $paged || '1' == $paged ) {
     // stuff to output on the first page
    }
  3. digitalmovement
    Member
    Posted 3 years ago #

    Thanks, but i found something that worked.
    So stupid, was looking for days and now i found this, right after i asked the question.

    but thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic