monkeybroth
Forum Replies Created
-
Forum: Plugins
In reply to: [Soundy Background Music] Music overlappingAh OK! thanks!
Here it is –
linkForum: Plugins
In reply to: [WP Login Box] Plugin causing the title to display apostrophes as 'I’ve tried de-activating all plugins as well. it only happens with WP-login box activated
Forum: Plugins
In reply to: [WP Login Box] Plugin causing the title to display apostrophes as 'Yes it works when i deactivate it. which is why im posting the issue here ??
Forum: Plugins
In reply to: [WP Login Box] Plugin causing the title to display apostrophes as '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
In reply to: [WP Supersized] Navigation only appears when 'Everywhere' is selectedOK i solved it,
if you have a loop in your footer make sure to add
<?php wp_reset_query(); ?>
after itForum: Hacks
In reply to: Calling a gallery within a custom post, from a main taxonomy pageto 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
In reply to: Listing custom posts by year with the year as its headingOK i referenced code from here
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 this2014
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>