My Recent Posts Homepage and a PHP Question
-
My homepage features three upcoming entertainment acts.
The way I see it, a new post made on Monday will bump the most recent event which expired over the weekend off the chart.
I think the code is using correct syntax and all the functions are referenced correctly.
Here’s my code (unstyled):
<div id=”upcomingacts”>
<li id=”recent_posts”>-
<?php if (have_posts()) : ?>
- ” title=”<?php the_title(); ?>”><?php the_title(); ?>
<?php query_posts(“showposts=3”); ?>
<?php while (have_posts()) : the_post();?><?php endwhile; ?>
</div><!– end of upcoming acts –>
Also, what’s a good PHP source for beginners?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘My Recent Posts Homepage and a PHP Question’ is closed to new replies.