WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks revert to homepage (1 post)

  1. matthisco
    Member
    Posted 1 year ago #

    HI folks,

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

    http://tinyurl.com/b7tagoa

    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; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic