Posts not appearing – newbie
-
Hi thanks for viewing.
I thought i knew how wp works, apparently not. I have added
<div id="blog"> <?php if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif; ?> </div>
[Moderator Note: Please post code or markup snippets between backticks (no – not single quotes) or use the code button.]
to my index.php file and nothing is showing up. I have read about wp-use -themes to false but dont think this is relevant to me. I have used the loop before and always just worked. Is there anything obvious that i need to set up before using the loop?
My theme is from scratch and so far has only index and style files. also my admin is telling me that the theme’s template is missing even though i have this at top of my style.css file.
‘/*Theme Name: Eimear’s Theme
Theme URI: https://www.eimearmcnally.ie
Description: Eimears Custom Theme
Author: JFKWEB
Version: 1.0
License: GNU General Public License
License URI: license.txt
Tags: eimear mcnally
*/’many thanks
Frank
- The topic ‘Posts not appearing – newbie’ is closed to new replies.