get_post_meta or Galleriffic Messes Up Loop
-
I have a problem with this loop:
<ul> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $photo_large = get_post_meta($post->ID, 'photo_large', true); ?> <?php echo $photo_large; ?>" > <?php the_content(); ?></a> </li> <?php endwhile; endif; ?> </ul>
The loop occasionally writes the link first, then writes the content after, like this:
<ul> <li> <a href="link" ></a> <p>Some of the content from post...</p> </li> </ul>
I’m not sure if it’s the loop or the Galeriffic script that’s causing this. Any help is GREATLY appreciated.
Here’s the URL:
https://www.waltersdogs.com/wdcms/gallery/
- The topic ‘get_post_meta or Galleriffic Messes Up Loop’ is closed to new replies.