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

Using add_image_size in functions.php to get original uploaded file

You can always get the url for original attachment image. I don’t see any code from you so i don’t know which one is good for you but there are lots of functions on core which will get you the original image. here are some http://codex.wordpress.org/Function_Reference/wp_get_attachment_url http://codex.wordpress.org/Function_Reference/the_post_thumbnail http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src When you scroll down bottom of the … Read more

How can I show different content for different user-levels?

This thread at wordpress.org – http://wordpress.org/support/topic/content-shown-based-on-user-role – suggests using the ‘current_user_can’ function This thread – http://wordpress.org/support/topic/display-a-custom-image-only-if-user-role-is-contributor – suggests you can use it like ‘current_user_can(‘contributor’)’ for different roles. I haven’t tried it but it sounds like it should work.

Custom Menu in Admin doesn’t change menu in browser

Your menu name doesn’t match in your sidebar. The theme_location should match the name of one of the registered menu’s in your functions.php file. Try replacing what you have with this: For the functions.php file: <?php add_theme_support( ‘menus’ ); add_action( ‘init’, ‘my_custom_menus’ ); function my_custom_menus() { register_nav_menus( array( ‘primary’ => __( ‘primary’ ), ‘secondary’ => … Read more