• I am in the middle of setting up a site managed by wordpress for a company and we don’t want any posts on the front page. I feel this is kinda similar to the single category on the front page questions with a twist we would like to use a page as the only post on the index page.
    I have started looking through the code for a way to build this but I though I would post here incase somebody could give me a head-start.
    Ultimately the functionality will, I hope, be in a plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • something like (off the top of my head):
    if (is_home) {
    // do frontpage stuff here
    } else {
    // get post
    }

    Thread Starter womby

    (@womby)

    *rolls eyes* I was looking at the is_ functions for ages trying to work out how to string them together into a clear way to identify if it was the front page. I never saw the is_home function.
    thanks.
    don’t even need a plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘to display a page instead of a post on front page’ is closed to new replies.