Not showing single post content
-
I am working on my very first theme and it isn’t going well.
The index page works great, but when I view a single entry, I run into problems. It sees the title, keywords and everything else properly, it just won’t display the text of the entry. I have tried everything from the default theme coding to my own homemade brew and still can’t get a solution.
I know it is seeing the file because it displays the content of the
<title>
tag properly.My site: https://www.williamstewart.org
Any help would be greatly appreciated!
Here’s the code I’m using:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<span class="vitaldetails"><?php the_time('F d, Y'); ?> | <a href="<?php comments_link(); ?>"><?php comments_number('0 comments','1 comment','% comments'); ?></a><?php edit_post_link('Edit','(',')'); ?></span>
<div class="mainlefthome">
<?php the_content();?>
</div>
<?php endwhile; else: ?>
<h1>File not found</h1>
<p>Whoops! This file cannot be found.</p><?php endif; ?>
<!-- /content -->
<?php get_footer(); ?>
- The topic ‘Not showing single post content’ is closed to new replies.