WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type on Home page (1 post)

  1. Chris
    Member
    Posted 4 years ago #

    Hello,

    I am trying to modify the 2010 theme to display a Custom Post Type called Movies on the home page.

    What is the best way to do this?

    So far I've created a loop-index.php file and added:
    <?php query_posts($query_string . '&post_type=movie'); ?>

    to the top of it. This seems to work, but I'd like to know if there is a better way to do this?

Topic Closed

This topic has been closed to new replies.

About this Topic