Support » Fixing WordPress » Permalinks revert to homepage

  • HI folks,

    I have my permalinks set to postname, but my pages all revert back to the main homepage, can anyone help?

    I have my page.php as follows:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    		<h1><?php the_title(); ?></h1>
    	  	<?php the_content(); ?>
    	<?php endwhile; else: ?>
    		<p><?php _e('Sorry, this page does not exist.'); ?></p>
    	<?php endif; ?>
  • The topic ‘Permalinks revert to homepage’ is closed to new replies.