That’s all fine, but basically what I have done is on my index.php is include pages in the page such as the following:
<?php $recent = new WP_Query("pagename=about"); while($recent->have_posts()) : $recent->the_post();?> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; ?>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
As this content will only be displayed on the homepage, I don’t want individual pages at all, nor for search engines to pick these up. I don’t have a navigation so that’s fine I just mean I don’t want say domain.com/about to be an available accessible url for the user, even if they type it in.
- The topic ‘Stop a page having a URL.’ is closed to new replies.