My Blog Post Won't Show even though I have the Loop
-
This is what my index file looks like
<?php
get_header();if(have_posts()) :
while (have_posts()) : the_post(); ?><h2>“><?php the_title() ?></h2>
<p><?php the_content(); ?></p><?php endwhile;
else :
echo ‘<p>No content found</p>’;
endif;get_footer();
?>But everytime I try to load it, it always says “No content found”
Can someone help me?
- The topic ‘My Blog Post Won't Show even though I have the Loop’ is closed to new replies.