Ynasr
Forum Replies Created
-
Thanks that worked!
Best,
YvanUpdate – so i checked “manage_others_bookings” and it fixed it. I initially thought checking this option would allow suscribers to edit other suscribers’ events (which i don’t want), but apparently it doesn’t. Could you confirm that this is indeed the case?
Many thanks,
YvanOh ok. I think this is a feature lots of other folks might be interested in.
Best,
Yvannot sure what happened here …
Hi Angelo,
Thanks for the tips. I couldn’t get these to work, so went the easy/css route by doing:
.event-ical img { max-width:50% !important; }
FYI – “event-ical” is the class name of the associated td.
Thanks again for the great plugin!
Best,
YvanHi,
thanks for the tip. I have added the following jquery, but it is still giving me an error message “Location name is required.” Is there anyway to disable this function all together. Or could you let me know what might be wrong with the query?
1st thing i have tried:
<script> $(document).ready(function() { $('#location-address').change(function() { $('#location_name').val($('#location-address').val()); }); }); </script> <input id="location-name" type="text" name="location_name" /> <input id="location-address" type="text" name="location_address" value="<?php echo esc_attr($EM_Location->location_address, ENT_QUOTES); ; ?>" />
2nd thing i tried:
<script> $( '#location-address' ) .keyup(function() { var value = $( this ).val(); $( '#location-name' ).text( value ); }) .keyup(); </script> <input id="location-name" type="text" name="location_name" /> <input id="location-address" type="text" name="location_address" value="<?php echo esc_attr($EM_Location->location_address, ENT_QUOTES); ; ?>" />
Any help would be much appreciated.
Many thanks,
yvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi Guys,
I finally got to the bottom of this. Used SQL to query wp_em_events though. I hope this helps folks that may be in a similar situation. FYI – I am a newbie so this is MOST CERTAINLY not best practice … but it works ??
global $wpdb; $fivesdrafts = $wpdb->get_results( " SELECT wp_em_events.event_slug, wp_em_locations.location_latitude, wp_em_locations.location_longitude, wp_em_events.event_name, wp_em_events.event_start_time, wp_em_events.event_end_time, wp_em_events.event_start_date, wp_em_events.event_rsvp, wp_em_events.event_attributes, wp_terms.name FROM wp_em_events INNER JOIN wp_em_locations ON wp_em_events.location_id=wp_em_locations.location_id inner join wp_term_relationships on wp_em_events.post_id = wp_term_relationships.object_id inner join wp_term_taxonomy on wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_id inner join wp_terms on wp_term_taxonomy.term_id = wp_terms.term_id WHERE wp_em_events.event_start_date='$Dt' AND wp_em_events.event_start_time='$fromSQL' AND wp_em_events.event_end_time='$toSQL' AND wp_terms.name = '$category' ", ARRAY_A ); ?>
Thanks again for the great plugin guys!
Best,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
So i am now using the following code and here everything work.
<?php $events = EM_Events::get(array( 'limit'=>10, 'owner' => 0, 'pagination'=>1)); foreach ( $events as $event ) { echo $event->event_owner; } ?>
The problem is that i then need to loop through events using
<?php while ( $events->have_posts() ) : $events->the_post(); ?>
Can anyone help me out with this?
Many thanks,
yvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
Is anyone able to assist me with this? I am really struggling to understand why querying events created by events-manager would be any different from querying any other custom posts. I am not looking for custom code, but for an explanation of why that is and ideas on how to solve this issue.
I am pretty sure this is something lots users are trying to achieve and so it’s probably worth addressing …
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
I totally understand. That said, all I am trying to do is understand why events custom field are not accessible and why all the fixes you suggested aren’t working.
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
So at first i thought this worked as it returned the right value (1), but then i realized $event_count would echo 1 no matter which key and value I chose. FYI – Here is the code i am using. Any thoughts?
<?php global $post; $EM_queries = em_get_event($post->ID, 'post_id'); $eventslug = $EM_queries->event_id; $args = array ( 'post_type' => 'event', 'posts_per_page' => 100, 'meta_query' => array( array( 'key' => '$eventslug', 'value' => 48, 'compare' => '=', ), ) ); $EM_Events = EM_Events::get( $args ); $events_count = EM_Events::count( $args ); ?> <?php get_header(); ?> <?php echo 'Total events: ' . $EM_Events; ?> <?php echo 'Total events: ' . $events_count; ?> <?php get_footer(); ?>
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueThanks Stephen,
I am going to play with this and see where it leads me. I will keep you posted. REALLY REALLY appreciate your help on this .
Thanks!
Best,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
This isn’t working … and i am really lost … I don’t understand why i am not able to just query events by custom field like so:
<?php $loop = new WP_Query( array( 'post_type' => 'event', 'posts_per_page' => 100 , 'meta_query' => array( 'key' => 'event_owner', 'value' => 1, 'compare' => '=' ) ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
Every tutorial i have seen is using this syntax so I don’t understand why querying events with events-manager would be anything different. What am I not getting … please help me … i am really stuck and really need this work :((
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
I am still not sure how that would help. Would you guys be able to provide me with mroe support if i were to upgrade to pro?
Many thanks,
Yvan