WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I make a cutom post type the static homepage in wordpress? (2 posts)

  1. joncalex
    Member
    Posted 3 years ago #

    I've created a custom post type via the functions.php. Now I want to make one of those the homepage. If I go to Settings > Reading The only choices I have are the page types.

    The list of pages we see in that select menu is coming from the 'wp_dropdown_pages' function in wp-admin/includes/template.php line 1010

    The function is called in wp-admin/options-reading.php on line 60

    Does anyone have any ideas of how this could be done? I'd rather not hack core. I'm not sure if there is a plugin override for this. Just to check, I looked at the the more types plugin and that one doesn't have a feature for this.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    make a page template, use query_posts to call the custom post type, make a new page to be your home page, assign it the new template which is querying your custom post type, make that new page your static front page

Topic Closed

This topic has been closed to new replies.

About this Topic