edit etc links go to wrong post on thumb page
-
On the following page
https://www.shamelessreading.com/romance-ebook-erotica-blog/popular-genres/historical-romance/I’ve been tweaking a script that grabs the info for all posts with the “historical” tag, pops out the thumbs w/ links to the appropriate posts, but something in the code isn’t closed or something, because when it gets to the bottom of the page, all the closing info goes to the wrong post (as in, it’s giving me the tags and link to edit for a completely different post. ??
<?php $my_query = new WP_Query('tag="historical"&showposts=100'); while ($my_query->have_posts()) : $my_query->the_post(); {?> <?php $values = get_post_custom_values("Thumb"); if ($values[0]){?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo get_option('home'); ?>/wp-content/uploads/<?php echo $values[0]?>" alt="" class="coverthumb" /></a><?php }} ?> <?php endwhile; ?>
Any thoughts?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘edit etc links go to wrong post on thumb page’ is closed to new replies.