How can I invoke an action after a CiviCRM triggering event?
How can I invoke an action after a CiviCRM triggering event?
How can I invoke an action after a CiviCRM triggering event?
You can use tax_query and use the AND condition: Reference: WP_Query under Taxonomy Parameters $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘hotels’, ‘field’ => ‘slug’, ‘terms’ => array( ‘1 Star’ ) ), array( ‘taxonomy’ => ‘location’, ‘field’ => ‘slug’, ‘terms’ => array( ‘loc1’ ) ) ) ); … Read more
Thanks to Milo for helping me through this. Here is the code that worked for me. function custom_events_query( $query ) { if ( $query->is_main_query() && $query->is_archive && !is_admin()&& is_post_type_archive(‘events’) && $query->query_vars[‘m’]!=”) { $query->set( ‘post_type’, ‘events’ ); $query->set( ‘meta_key’, ‘event_date’ ); $query->set( ‘orderby’, ‘meta_value’ ); $query->set( ‘order’, ‘DESC’ ); $query->set( ‘post_per_page’, 10 ); unset($query->query_vars[‘year’]); unset($query->query_vars[‘monthnum’]); unset($query->query_vars[‘day’]); … Read more
You need to use the meta_key to sort your events in your array. Like so: <?php $loop = new WP_Query( array( ‘post_type’ => ‘kurs’, ‘meta_key’ => ‘dato’, ‘order_by’ => ‘meta_value’, ‘order’ => ‘ASC’ ) ); ?>
I recently used http://wpeventticketing.com/ for WDC2011 in October, I didn’t look to far in to all the options but I think it can do everything you’re looking for. I’d suggest also using MailChimp for emailing attendees as it is far better than anything I’ve found to plugin to WordPress.
Rather than trying to interfere with the button operation and doing validation in jQuery or javascript, I find it easier to hook the save_post action and do my validation in php (checking if certain post_meta exist or are correct), then if things don’t check out, you can set the post status back to “pending”, which … Read more
There are a couple suggestions I have for you: If you are a programmer and you can adapt this code that associates users with custom post types you might be able to get what you need. You may also want to look at membership plugins as they may give you some of the functionality you … Read more
Unfortunately, there’s really nothing out there that’s going to solve all of your problems out of the box. Whatever calender solution you choose will require some amount of customization. The one that I’ve found fills most needs is The Events Calendar. It’s not perfect, but it’s a lot better than many other events calendar plugins … Read more
Here’s a plan: Store the dates as individual custom fields with the same meta_key (ex: start_date) JOIN the wp_posts table with the wp_postmeta table, without a GROUP BY (to allow the same event to appear more than once) ORDER BY start_date The full query would look like this: SELECT wp_posts.*, meta_value AS start_date FROM wp_posts … Read more
FullCalendar is a nice find. Looks to me like you’ll need to write a shortcode (which I show how to do here): Adding an Archive of Posts to the Navigation Menu in WordPress 3.0 And then generate the code to call the FullCalendar within the shortcode. After that you’ll need to write code to generate … Read more