Support » Fixing WordPress » Help Closing A Loop (I think this is what I need)

  • Hi there,

    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">
    						$temp = $wp_query;
    						$wp_query= null;
    						$wp_query = new WP_Query();
    						<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>
    											        <hr color="#d9d9d9" size="1" />
    						<?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>
    						<?php $wp_query = null; $wp_query = $temp;?>
    			<!-- SIDEBAR -->
    			<p><a href=""><img src="" alt="Videos" width="275" height="23" border="0" /></a><br />
    			  <?php the_content(); ?>
    			  <!-- PHOTO GALLERY. -->
    	        <p><a href="" target="_blank"><img src="" alt="Videos" width="275" height="23" border="0" /></a></p>
    	        <p><a href=""><img src="" alt="Video" border="0" /></a></p>

    Thanks for your help ahead of time!

    I’ve been stuck trying to figure this out for over a month!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help Closing A Loop (I think this is what I need)’ is closed to new replies.