WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] switch pages and posts (2 posts)

  1. cerberus478
    Member
    Posted 1 year ago #

    I would like to use pages in my index.php instead of posts. Is there a way to do that?

    I have gone through a couple of tutorials and they always have the posts in the index.php and when I check the coding I don't see anything different.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    You would need to modify your theme's index.php template file to use a custom query. See:
    http://codex.wordpress.org/Function_Reference/query_posts
    http://codex.wordpress.org/Function_Reference/WP_Query

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags