[Plugin: Just Custom Fields] Duplicate images with just_custom_image
-
For some reason when I use
just_custom_image
in my page template, it prints two images.Here’s the code below:
$args = array( 'numberposts' => 3, 'order'=> 'DESC', 'orderby' => 'post_date', 'category' => 258); $postslist = get_posts( $args ); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="span2"> <a href="<?php echo get_post_meta($post->ID, 'award-link', true); ?>"> <?php echo just_custom_image($post->ID, 'award-image'); ?> </a> </div> <?php endforeach; ?>
So this prints two img tags with uploaded image from the ‘award-image’ Custom Field.
Any idea why?
https://www.ads-software.com/extend/plugins/just-custom-fields/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Just Custom Fields] Duplicate images with just_custom_image’ is closed to new replies.