Can’t see past events on admin dashboard
Can’t see past events on admin dashboard
Can’t see past events on admin dashboard
Support answered and said they didn’t know how to get the published date, but they would ask their team. For anyone else looking for this answer, I finally found that I can use this to get this published date: $date = mysql2date(‘F d, Y’, get_post_time(‘Y-m-d H:i:s’, true), false);
Here’s the code that finally worked for me: <?php global $events_meta_termine; $today = getdate(); $my_query = new WP_Query(‘post_type=events&posts_per_page=-1&monthnum=’.$today[“mon”]); $events=array(); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $meta = get_post_meta(get_the_ID(), $events_meta_termine->get_the_id(), TRUE); foreach ($meta[‘termin_group’] as $termin) { $event=array(); $event[‘title’]=get_the_title(); $event[‘date’]=$termin[‘termin_date’]; $event[‘time’]=$termin[‘termin_time’]; $event[‘location’]=$termin[‘termin_location’]; $events[]=$event; } endwhile; wp_reset_query(); $i=0; usort($events, “cmp”); function cmp($a, $b){ return strcmp($a[‘date’],$b[‘date’]); } ?> … Read more
Cant get any simpler than this (and without using a plugin) Display Events should be easy to bend it to do what you want it to do
You should definitely do it in just a single query. then set up a simple loop, each iteration get that day’s date. then loop through all posts and compare the date to the date meta field, and output if it matches. I think something like this should work… $today = date(“o-m-d”); $future = strtotime ( … Read more
I know this does not meet your requirement of supporting Paypal and Authorize.net, but it does support Eventbrite, so it may be worth looking into: The Events Calendar
I am a front-end developer working full time with Event Espresso. This is by far the most flexible, feature rich platform if you want to work exclusively with WP without using an external booking manager. Its relatively easy to develop for.
It is possible to set up a location-based directory using WordPress – I did it recently, and I personally find it easier to achieve than – well, almost anything with Drupal but that’s likely because I have no experience with Drupal. The trick is to work out beforehand what is best expressed as a taxonomy … Read more
I recently did exactly the same, you’ll have to use custom query: $date = time()-86400; /* today */ $querystr = ” SELECT $wpdb->posts.* FROM $wpdb->posts, $wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->posts.post_status=”publish” AND $wpdb->postmeta.meta_key = ‘event_date’ AND $wpdb->postmeta.meta_value > ” . $date . ” ORDER BY $wpdb->postmeta.meta_value ASC “; $pageposts = $wpdb->get_results($querystr, OBJECT); foreach ($pageposts … Read more
What you could do is create a metabox for the ‘People’ custom post type which would have radio values ‘Not Sponsored’ and ‘Sponsored’ (Not Sponsored b default). PayPal posts some transaction details to the notify url you have specified. Once you recieve the proper information from PayPal, like payment status is completed, then you could … Read more