WordPress.org

Ready to get started?Download WordPress

Forums

customize top entry (3 posts)

  1. dsstroud
    Member
    Posted 7 years ago #

    I am interested in using fgreen theme as shown here:
    http://themes.wordpress.net/columns/2-columns/190/fgreen-10/

    The first entry uses the color blue. I would like to customize so that I can define a specific category so that say a featured item appears there but moves off the front page when a new featured item is entered. I don't want the featured item to move to the white area as just a previous post. Is there anyway to do that with categories or with some kind of hack?

    Thanks,

    Doug

  2. dsstroud
    Member
    Posted 7 years ago #

    anybody? I read through the docs about loops, so wordpress should be able to do it, but really do not understand the code part of this to make it happen. a little help would be appreciated...

  3. jackosh
    Member
    Posted 7 years ago #

    yeah, you need an if statement in your loop, that essentially says:

    if (the category you want){
    <div class="blue_post">
    ENTRY
    </div>
    } else {
    <div class="reg_entry">
    ENTRY
    </div>
    }

    Read through the docs to find the exact code that you need..

Topic Closed

This topic has been closed to new replies.

About this Topic