• Is there a way to set up a link so that only one page is displayed? I have a link like this:

    /?page_id=Contact”>Contact

    When the page is displayed with page.php in the Them that I’m using all the pages are displayed, not just Contact. I want just contact to display.

    The code in in page.php is as follows:

    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(”); ?>
    <?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
    <?php endwhile; endif; ?>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Displaying a single page’ is closed to new replies.