Forums

How to display a specific page (3 posts)

  1. Pete
    Member
    Posted 2 years ago #

    I have searched for this problem and believe it or not, it's quite hard t find a simple direct answer to my question...

    How do I display a specific page (it's content)?

    Thanks for your help

  2. Inspired2Write
    Member
    Posted 2 years ago #

    Assuming you're speaking of a 'page' and not a 'post'...

    To have a link for a page show up on the front end, it may depend on your blog template as to where it will show up. Some templates may have a menu at the top with links to each page. Also, look in your 'widget' area for the 'page' widget. You may need to move that to the sidebar or other area to have the links to your pages show up. Hope that's what you were needing!

  3. Pete
    Member
    Posted 2 years ago #

    Found the solution...

    <?php $recent = new WP_Query("page_id=515"); while($recent->have_posts()) : $recent->the_post();?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic