WordPress.org

Support

Support » Themes and Templates » Homepage Customization Preference

Homepage Customization Preference

  • 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)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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]
    }

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Homepage Customization Preference’ is closed to new replies.