Trouble with code
-
I’m working on some custom coding, and am having issues with the following code:
<phpcode>
<?php
query_posts(‘showposts=1&cat=36’); //selects 1 article of the category with ID 1 ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$values = get_post_custom_values(“Leadimage”);
if (isset($values[0])) {
?>
” rel=”bookmark”><img style=”float:left;margin:0px 10px 0px 0px;” src=”<?php bloginfo(‘url’); echo ‘/wp-content/uploads’; echo ‘/’;
$values = get_post_custom_values(“Leadimage”); echo $values[0]; ?>” align=”left” border=’0′ height=’200′ width=”200″ alt=”<?php the_title(); ?>” />
<?php } ?>” rel=”bookmark” title=” <?php the_title(); ?>” class=”title”>
<h3> <?phpthe_title(); ?></h3>
<?php
the_excerpt() ; ?>
<?php endwhile; ?>
</phpcode>Specifically, I’m using the Revolution wordpress theme, with the execphp plugin.
http://outgaylife.com/?page_id=6442&preview=true
is the output page for this (I’ve put the code above in the editing box)For some reason, it’s showing more than just the excerpt.
Any ideas?
PS… http://outgaylife.com/gay-travel/ shows a live version of this odd mistake. If I take the above code out of the editing box, it will show just the mini excerpts.
http://outgaylife.com/?page_id=6459&preview=true
shows the resulting output with the above code removed. I’d like to show the excerpt above, but not the post below.
Thanks in advance..
- The topic ‘Trouble with code’ is closed to new replies.