Todays events query
This topic contains 12 replies, has 4 voices, and was last updated by Paolo 10 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
June 27, 2014 at 10:40 pm #6564
Hi
I have been using GeoTheme and I am now in he process of changing the site to use GeoDirectory plugins. So far so goo but I have come abit unstuck.
Under GeoThemes I had the following code to pull todays events – but I have no idea how accomplish the same thing in using GeoDirectory Event Manager since the date fields are no longer post meta’s
<?php echo date('l j F'); ?> <?php // WP_Query arguments $event1 = current_time('Y-m-d'); $args = array ( 'post_type' => 'event', 'post_status' => 'publish', 'meta_query' => array( array( 'key' => 'st_date', 'compare' => '=', 'value' => $event1, ) ), 'orderby' => 'meta_value' , 'meta_key' => 'st_date' , 'order' => 'ASC', ); // The Query $query = new WP_Query( $args ); while( $query -> have_posts() ) : $query -> the_post(); ?> <div class="do-today"> <span class="do-thumbnail"><?php the_post_thumbnail(); ?></span> <div class="do-details"> <span class="do-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></span> <div class="do-meta"> <span class="do-address"><?php /* display city name on listing */ $cityid = get_post_meta($post->ID,'post_city_id','true'); /* echo $cityid; */ global $wpdb; $cityname = $wpdb->get_var("select cityname from $multicity_db_table_name where city_id="$cityid""); echo $cityname; ?></span> | <span class="do-age-range"><?php echo get_post_meta($post->ID, 'age_range', true); ?></span> | <span class="do-fees"><?php echo get_post_meta($post->ID, 'reg_fees', true); ?></span> </div> </div> </div> <?php endwhile; wp_reset_postdata(); ?>
Anyone know how I can display todays events?
Thanks in advance
June 28, 2014 at 6:38 pm #6635A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
June 29, 2014 at 8:59 pm #6723A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 2, 2014 at 9:38 am #7142A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 2, 2014 at 9:53 am #7147A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 3, 2014 at 9:16 am #7336A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 3, 2014 at 10:23 am #7340A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 3, 2014 at 10:25 am #7342A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
July 3, 2014 at 5:06 pm #7373A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 13, 2014 at 11:27 am #11848A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 13, 2014 at 11:55 am #11852A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 13, 2014 at 4:39 pm #11918A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 13, 2014 at 8:13 pm #11962A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket