Ready to get started?Download WordPress


Homepage Customization Preference (3 posts)

  1. adambecker
    Posted 3 years ago #

    On a potential theme (portfolio type) homepage, would you rather chose the amount of portfolio items (sorted by latest) or chose specific ones (max 4 items)?

  2. Stephanie
    Posted 3 years ago #

    I'd prefer to have the former, but I can imagine that there are also quite a few people who'd prefer the latter.

    Would it be possible to implement both? I don't know how to set up a page of theme options (like in the Twentyten theme), but if you suppose that one of the options is a boolean (True/False) called $bool, then you can write, in the homepage code:

    if ($bool) {
    [code that echos the latest works]
    elseif (!$bool) {
    [code that echos specific works]

  3. adambecker
    Posted 3 years ago #

    Thanks Stephanie for the reply, I agree that it would be nice to implement both. The reason I asked the question was just to see if there was an overwhelming response to one or the other, it seems however like there will likely be the same amount of people that will want one or the other.

    Unfortunately, querying posts in a very specific order isn't really doable and I was trying to avoid multiple queries. Oh well, loops here I come.

Topic Closed

This topic has been closed to new replies.

About this Topic