The Loop in WP 2.0.4 – Help!
-
Hi guys,
I hope you can help me here.
I’ve been trying to get the loop to work after upgrading to 2.0.4, but no matter which code I use, it still isn’t working. I get this error using the older loop code (endforeach):
Fatal error: Call to undefined function: _e() in /home/whistlem/public_html/index.php on line 12
And this error when I use the newer loop code (endwhile):
Fatal error: Call to undefined function: have_posts() in /home/whistlem/public_html/index.php on line 4
This is my code (newer loop):
<!————START WORDPRESS CONTENTS—————–>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div align=”center” class=”top”><?php the_date(‘D d/m/y @ g:i a’,”,”,true); ?></div>
<div class=”title”><?php the_title(); ?></div>
<div class=”head2″>Filed under: <?php the_category(‘,’); ?> && <?php comments_popup_link(__(‘C0MNTS’), __(‘C1MNTS’), __(‘C%MNTS’)); ?></div><div class=”box”><?php the_content(); ?>
<p align=”center”><img src=”plug.gif”>: <?php mdv_comment_plugger(); ?>
<?php comments_template(); ?></div>
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
<!————END WORDPRESS CONTENTS——————->My website is https://www.whistlemytune.com
Can anyone see the problem? It says there’s a fatal error in the first line.
Thanks to anyone who can help. =)
Bekah
-xxx-
- The topic ‘The Loop in WP 2.0.4 – Help!’ is closed to new replies.