WordPress.org

Support

Support » How-To and Troubleshooting » How to set front page content from a single page, but not post?

How to set front page content from a single page, but not post?

  • morganwwf

    @morganwwf

    hi all,

    as title, how can i change the default front page (displaying 10 latest posts) to a specific page ( eg. page_id=3)

    i have tried to put this line of code in the main index template(index.php)

    <?php get_pages(3); ?>
    or
    <?php get_pages(‘3’); ?>
    or
    <?php get_pages(); ?>

    but none of the way works!!!!

    can anyone help me??

    Thanks.

    morgan

Viewing 1 replies (of 1 total)
  • Why don’t you just set the page from the admin interface? From your dashboard navigate to Settings > Reading. There you can set your front page to display a static page if you wish.

Viewing 1 replies (of 1 total)
  • The topic ‘How to set front page content from a single page, but not post?’ is closed to new replies.
Skip to toolbar