I understand that I have empty tags in my html when I look at my page source I can see that. But what file do I edit or add the picture codes into?
this is my:
Featured.php file
<!– begin featured –>
<div class=”fwrapper”>
<div id=”featured-img”>
<div id=”featured”>
<div class=”featured”>
<?php
$tmp_query = $wp_query;
query_posts(‘cat=’ . get_cat_ID(dp_settings(‘featured’)));
if (have_posts()) :
$first = true;
while (have_posts()) : the_post();
ob_start();
?>
<li<?php if ($first) echo ‘ class=”first”‘; ?>>“><?php dp_attachment_image($post->ID, ‘full’, ‘alt=”‘ . $post->post_title . ‘”‘); ?>
<?php
$photos .= ob_get_clean();
ob_start();
?>
<li<?php if ($first) echo ‘ class=”first”‘; ?>>
<h2>“><?php the_title(); ?></h2>
<p><?php echo dp_clean($post->post_content, 300); ?></p>
<?php
$text .= ob_get_clean();
$first = false;
endwhile;
endif;
?>
<ul class=”photo”>
<?php echo $photos; ?>
<ul class=”text”>
<?php echo $text; ?>
</div>
</div>
</div>
</div>
<?php $wp_query = $tmp_query; ?>
<!– end featured –>
For some reason I think it is missing this? and if it is where exactly do I add it into?
<?php if (get_post_meta($post->ID,”articleimg”,true) != ”): ?>
ID,”articleimg”,true); ?>” />
<img src=”<?php echo get_post_meta($post->ID,”articleimg”,true); ?>” alt=”” />