WordPress.org

Ready to get started?Download WordPress

Forums

Help making a one page theme (2 posts)

  1. meekree
    Member
    Posted 1 year ago #

    I am trying to make a one page theme right and was wondering how you get all of the pages on one page.

    I was thinking of trying to use posts_per_page and customizing it to pull pages but is there a better way?

    Thanks!

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    If you already have certain amount of content known exactly for that one page, then you can just use regular WP's page, dump all the content into it. Make sure you don't have any posts and comments, so that there is no nothing else to display or indexed by search engine other than that one page.

    More fancy way is to use index.php with the_content() not the_excerpt() and make sure the post's title is not wrapped with link to the single, and no link to comments, tag, category, just plain title and content. Might as well, remove other template files, leave only index.php.

Topic Closed

This topic has been closed to new replies.

About this Topic