Title: monkeybroth's Replies | WordPress.org

---

# monkeybroth

  [  ](https://wordpress.org/support/users/monkeybroth/)

 *   [Profile](https://wordpress.org/support/users/monkeybroth/)
 *   [Topics Started](https://wordpress.org/support/users/monkeybroth/topics/)
 *   [Replies Created](https://wordpress.org/support/users/monkeybroth/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/monkeybroth/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/monkeybroth/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/monkeybroth/engagements/)
 *   [Favorites](https://wordpress.org/support/users/monkeybroth/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Soundy Background Music] Music overlapping](https://wordpress.org/support/topic/music-overlapping/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [12 years ago](https://wordpress.org/support/topic/music-overlapping/#post-4865074)
 * Ah OK! thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print, PDF, Email by PrintFriendly] Print the full article that has been separated to 2 pages?](https://wordpress.org/support/topic/print-the-full-article-that-has-been-separated-to-2-pages/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/print-the-full-article-that-has-been-separated-to-2-pages/#post-4081547)
 * Here it is –
    [link](http://aer.vagary.com.sg/listconews/proin-at-nibh-a-tellus-hendrerit-pellentesque-quis-quis-ipsum/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Login Box] Plugin causing the title to display apostrophes as '](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years ago](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/#post-3686664)
 * I’ve tried de-activating all plugins as well. it only happens with WP-login box
   activated
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Login Box] Plugin causing the title to display apostrophes as '](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years ago](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/#post-3686663)
 * Yes it works when i deactivate it. which is why im posting the issue here 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Login Box] Plugin causing the title to display apostrophes as '](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years ago](https://wordpress.org/support/topic/plugin-causing-the-title-to-display-apostrophes-as/#post-3686645)
 * Yes that’s right. for example if i type “Website’s Blog” then click Update, after
   the refresh
    the apostrophe would become & #039; “Website& #039;s Blog” or the
   ampersand would become & amp;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Supersized] Navigation only appears when 'Everywhere' is selected](https://wordpress.org/support/topic/navigation-only-appears-when-everywhere-is-selected/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/navigation-only-appears-when-everywhere-is-selected/#post-3582403)
 * OK i solved it,
 * if you have a loop in your footer make sure to add
    `<?php wp_reset_query(); ?
   >` after it
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Calling a gallery within a custom post, from a main taxonomy page](https://wordpress.org/support/topic/calling-a-gallery-within-a-custom-post-from-a-main-taxonomy-page/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/calling-a-gallery-within-a-custom-post-from-a-main-taxonomy-page/#post-3575182)
 * to be more specific, when I click on the link, i’d like a lightbox to appear 
   displaying the gallery slideshow from that post immediately, bypassing showing
   the whole post
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Listing custom posts by year with the year as its heading](https://wordpress.org/support/topic/listing-custom-posts-by-year-with-the-year-as-its-heading/)
 *  Thread Starter [monkeybroth](https://wordpress.org/support/users/monkeybroth/)
 * (@monkeybroth)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/listing-custom-posts-by-year-with-the-year-as-its-heading/#post-3529204)
 * OK i referenced code from [here](http://wordpress.org/support/topic/archives-by-year-this-is-different?replies=33)
 * Now the years show up nicely. But I have another problem.
    I have 3 posts. dated
   in their years 2014, 2013, 2012, for testing. the years show up fine on front-
   end but ALL 3 show this
 * 2014
    post(2013) post(2012)
 * 2013
    post(2013) post(2012)
 * 2012
    post(2013) post(2012)
 * 2014 posts won’t show likely because today’s date isn’t past that.
    for 2013 
   and 2012, they show all posts.
 * How do edit my code such that they show the corresponding posts in their year??
 * PLEASE HELP!
 *     ```
       <div id="gallerylist">
   
       	  <?php
       $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts ORDER BY post_date DESC");
       foreach($years as $year) : ?>
   
       <ul id="display"><?php echo '<span>',$year,'</span>' ?>
               <?php global $query_string; query_posts($query_string . '&posts_per_page=-1');?>
               <?php if (have_posts()) :  while (have_posts()) : the_post(); ?>
               	<?php
       				$custom = get_post_custom($post->ID);
               		$image_html= get_the_post_thumbnail($post->ID, 'thumbnail');
       			?>
               <li>
                   <?php print $image_html; ?>
                   <h3><?php echo the_title(); ?></h3>
                   <p><?php echo get_post_meta($post->ID, 'caption', true); ?></p>
               </li>
                    <?php endwhile; else: ?>
       			<p><?php _e('No posts were found. Sorry!'); ?></p>
       		<?php endif; ?>
               </ul>
       		<?php endforeach; ?>
   
               </div>
       ```
   

Viewing 8 replies - 1 through 8 (of 8 total)