php messing up captioned pics
-
on this page i have the following php code which pulls in the excerpts of recent posts at the bottom of the page:
<?php $custom_query = new WP_Query( 'posts_per_page=3&cat=1' ); if ( $custom_query->have_posts() ) : while ( $custom_query->have_posts() ) : $custom_query->the_post(); ?> <p id="title"><?php the_title(); ?></p> <p id="small-date">Posted on: <?php the_time('F j, Y') ?></p> <?php the_excerpt(); ?> <hr /> <?php endwhile; else : ?> <h3>Sorry...</h3> <p>No posts were found.</p> <?php endif; ?>
i’m using the exec-php plugin to make it work inside the page.
but for some reason, this php messes up the captioned images in the section above. you can go to this test page i setup to see what it looks like when there’s no php code in there.
please advise what’s wrong. thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘php messing up captioned pics’ is closed to new replies.