WordPress.org

Ready to get started?Download WordPress

Forums

How to set front page content from a single page, but not post? (2 posts)

  1. morganwwf
    Member
    Posted 5 years ago #

    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

  2. Len
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic