• Resolved mtibbits

    (@mtibbits)


    With some help I’ve received on here recently I have been using a combination of pages and posts. My pages work fine, but I noticed this morning that my posts do not.

    The posts show up on the home page, but the title link, or even the read more link do not work.

    My site is here.

    I’m using page.php for my pages and index.php for my posts.

    This is my loop code for the posts (index.php):

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<div class="post">
    		<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    		</h1>
    		<div class="entry">
    			<?php the_content('Read more...'); ?><a href="<?php the_permalink(); ?>">(Read more...)</a>
    
    		</div>
    
    		<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php the_time('F jS, Y') ?></p>
    	</div>
    
    	<?php endwhile; ?>
    
    	<div class="navigation">
    		<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    		<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    	</div>
    
    <?php else : ?>
    
    	<h2 class="center">Not Found</h2>
    	<p class="center">Sorry, but you are looking for something that isn't here.</p>
    	<?php get_search_form(); ?>
    
    <?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Links to POSTS will not work’ is closed to new replies.