WP1.5 PHP Exec – including a loop in a page
-
Hi,
Have installed PHP Exec v1.3 and it works (basic PHP commands).
I’d like to post a “page” containing the loop but limited to only one category.
Problem is, the loop just spits out “Sorry, but you are looking for something that isn’t here.”
Any help would be appreciated.
In the page is the following code:
<phpcode>
<h1>Latest News</h1>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="blogentry">
.
.
. Usual blog entry, stats & trackback stuff
.
.
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?><?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</phpcode>
The topic ‘WP1.5 PHP Exec – including a loop in a page’ is closed to new replies.