Get post info inside modal window?

It would appear your use of Thickbox is the culprit. When opening a thickbox via the anchor, the thickbox parameters must always be last, else the other parameters will be removed, e.g. your movies Post ID http://devll.wordpress.com/2009/10/01/jquery-iframe-thickbox-removes-parameter/ Firstly, your use of queries is incorrect, what’s more you never tell your query which post to look … Read more

Sort users by meta_value_num

Add this code in functions.php. Use orderby with meta_value_num and define meta_key in argument array. add_action( ‘pre_user_query’, ‘wps_pre_user_query’ ); function wps_pre_user_query( &$query ) { global $wpdb; if ( isset( $query->query_vars[‘orderby’] ) && ‘meta_value_num’ == $query->query_vars[‘orderby’] ) $query->query_orderby = str_replace( ‘user_login’, “$wpdb->usermeta.meta_value+0”, $query->query_orderby ); }

How to add padding between posts

WordPress already generates class for each posts, you can use these classes using the post_class function. Note: The function can be used either within the loop or by passing the $post_id So you would have <ul> <?php $the_query = new WP_Query( ‘posts_per_page=5’ ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <div … Read more

Display two post types ordered by two custom fields

My old code was wrong, this is a good one, as I think: function add_custom_post_type_to_query( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( ‘post_type’, array( ‘post’, ‘facebook_events’, ‘event’ ) ); $query->set( ‘meta_query’, array( ‘relation’ => ‘OR’, array( ‘key’ => ‘event_start_date’, //this is from facebook_events post type ‘value’ => date_i18n(“Y-m-d”), ‘compare’ => ‘>=’, … Read more