i’m trying to use the exec-php plugin to show the most recent post at the bottom of the [URL=“http://pokermechanicschool.com/”]homepage here. but for some reason it screwing up the works. i created a [URL=“http://pokermechanicschool.com/test-page/”]test page here to show you what the page looks like without the plugin.
here’s the code i’m using at the bottom of the homepage to make the plugin run:
<h2>Latest Free Poker Mechanic Tip</h2>
<?php
$latestposts = get_posts('numberposts=1&category=1');
foreach($latestposts as $post) :
setup_postdata($post);
?>
<h2><a href="<?php the_permalink(); ?>"><?php echo $post->post_title; ?></a></h2>
<?php the_content(); ?>
<?php endforeach; ?>
how do i fix it so that it looks right and shows the most recent post at the bottom of the homepage???