Making a wordpress page print friendly

remove_filter( ‘the_content’, ‘printme_add_link’ ) will prevent the link from being placed. You can just call printme_add_link() in your template to generate the print button. Alternately, you can just add_query_arg( ‘print’, 1, get_permalink() ) and use that as the link if you would prefer to do the link some different way.

Changing date query from month

I’m kinda confused on why you’re passing 0 as meta_value, but if your storing unix timestamps under anniversary_date, this approach should be sufficient: // queries anniversary dates between today and the next 30 days $query = new WP_Query(array( ‘order’ => ‘ASC’, ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘anniversary_date’, ‘meta_value’ => array(strtotime(‘today’), strtotime(‘+30 days’)), ‘meta_compare’ => ‘BETWEEN’ … Read more

show all the posts thumbnails

you can modify or create a simple posts loop with only feature image in there. so you could use something like : <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class=”feature-image”> <a href=”https://wordpress.stackexchange.com/questions/55244/<?php the_permalink(); ?>”><?php the_post_thumbnail(); ?></a> </div> <?php endwhile; ?> <?php wp_reset_query(); ?> then your CSS can be: .feature-image … Read more