I’m running this site:
[Access info removed – in error – sorry – see note below]
I’m trying to pull in the “the_content” shortcode under PHOTO GALLERY, but it’s bringing in the last post from the feed on the left…
Here is the code from the Public Reports feed on the left…
<div class="col-595"> <article> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('cat=6&showposts=8'.'&paged='.$paged); ?> <hr color="#d9d9d9" size="1" /> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <h4><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></h4> <p><?php the_excerpt(); ?> » <strong><a href="<?php the_permalink(); ?>" target="_blank">View Release</a></strong></p> <br> <hr color="#d9d9d9" size="1" /> <br> <?php endwhile; ?> <b><div class="navigation"> <div class="alignleft"><?php previous_posts_link('« PREVIOUS PAGE') ?></div> <div class="alignright"><?php next_posts_link('NEXT PAGE »') ?></div> </div> </b> <br><br><br> <?php $wp_query = null; $wp_query = $temp;?> <br> </article> </div> <!-- SIDEBAR --> <p><a href="http://www.vcdistrictattorney.com/photo-gallery/"><img src="http://www.vcdistrictattorney.com/wp-content/themes/images/media_hdr_photos.png" alt="Videos" width="275" height="23" border="0" /></a><br /> <?php the_content(); ?> <!-- PHOTO GALLERY. --> </p> <p><a href="http://www.youtube.com/user/venturacountyda/" target="_blank"><img src="http://www.vcdistrictattorney.com/wp-content/themes/images/media_hdr_videos.png" alt="Videos" width="275" height="23" border="0" /></a></p> <p><a href="http://www.vcdistrictattorney.com/photo-gallery/"><img src="http://www.vcdistrictattorney.com/wp-content/themes/images/videogallery_screenshot.png" alt="Video" border="0" /></a></p> </div>
Thanks for your help ahead of time!
I’ve been stuck trying to figure this out for over a month!
You need to immediately change your password – you should never put that kind of info on a public forum. It’s likely this thread has already been indexed by search engines.
EDIT – sorry, sorry, just noticed that it was only front end access…if you post in again, someone may be able to help you – but what theme or plugin are you using for the gallery?
The plugin is WP Photo Album Plus…
However, the issue is that I did something to the loop. Because the “Photo Gallery” is actually not showing. The last post, from the loop on the page is showing under “Photo Gallery”.
The loops has the
<?php endwhile; ?>, but it’s still showing the last post on the right, under the Photo Gallery image.
What theme are you using? Have you tried downloading a new copy of the theme and looking at the original loop.php file compared to the modified one. Also, are you using a Child Theme to make these kinds of changes? Otherwise, any changes to theme files will be overwritten and lost when the theme is updated.
- The topic ‘Help Closing A Loop (I think this is what I need)’ is closed to new replies.