Ynasr
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueNo, that won’t work either. So here is my problem. I don’t understand why i can’t just use things like ‘event_slug’ => ‘example1’ in my query? What do i need to do to access the custom fields i see in the wp_em_events table? I would just like to query for any field in that table (event_slug, etc). Could you please explain to me why this isn’t straight forward and how one could access and filter by these fields.
Also, would upgrading to pro allow me to get more feedback from you guys?
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueBTW – I realized that if i changed ‘post_per_page’ => 100 to ‘post_per_page’ => 0 it has no effect on the output of my loop. I am really struggling with this. Any help would be most welcome. I have gone through everything … Codex, forums, stackoverflow … nothing helped …
Thanks,
yvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
Thanks so much for the tip. I have tweaked the code a bit, but the page is not loading … i think i am getting closer, but there must be something wrong. Any idea?
<?php global $post; $EM_queries = em_get_event($post->ID, 'post_id'); $eventslug = $EM_queries->get_event_slug()->event_slug; $loop = new WP_Query( array ('post_type' => 'event', 'posts_per_page' => -1 , 'meta_query' => array( array( 'key' => '$eventslug', 'value' => 'test-fitler-1', 'compare' => '=', ), ), )); ?>
Thanks again for all your help!
Best,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueHi,
I have tried all the example you have sent and nothing seems to work. Here is the code i am working with. Could you please let me know what i am doing wrong. I am sure it is something simple … but i am stuck right now:
<?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();
?><?php
global $post;
$EM_Event = em_get_event($post->ID, ‘post_id’);$latitude = $EM_Event->get_location()->location_latitude;
$longitude = $EM_Event->get_location()->location_longitude;
$date = $EM_Event->event_end_date;
$start_time = $EM_Event->event_start_time;
$attendees = $EM_Event->event_rsvp_spaces;
$attributes = $EM_Event->event_attributes;
$attributes_string = implode (‘/’ , $attributes);
echo $termsString;
?>Again, everything works well except the WP_query … any chance you guys can help out. I really love the plugin and looking to launch soon …
Many thanks,
YvanForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] wp_query issueFyi – I have also tried the following and it still won’t work.
$loop = new WP_Query( array( ‘post_type’ => ‘event’, ‘posts_per_page’ => 100 ,
‘meta_query’ => array(
array(
‘key’ => ‘event_owner’,
‘value’ => 1,
‘compare’ => ‘IN’
)
)
));
Hi,
Many thanks for your help! I will give this snippet a try.
best,
YvanWonderful! I will give this a trial.
Many thanks,
YvanYour code is actually exactly what I was looking for.
Thank you so much!Best,
yvanWell I am trying to loop through all the events-location so i do not have the exact post ID. Could one alternative be to insert the location_latitude and location_longitude (from the wp_em_locations table) directly into the wp_em_events table.
Many thanks,
YvanThis is in a new template file I created. Is there a way to call lat and long, by binding tables, etc.
Many thanks,
yvanOk no problem. Thanks!
YHi,
Oh so even scope won’t work ? Say: today, tomorrow, this week …
Many thanks,
YOk thanks a lot. I will see what i can do … and will share my work if it proves to be successful.
thanks a lot for your help.
Best,
YvanForum: Plugins
In reply to: [Plugin: Google Maps / Events / Front end submissions] Suggestion needed!Hey Zorbatchev,
Any updates on your search? I have the exact same requirements. I have been using Events-manager. it does 90% of what I need, but it won’t allow members to filter events on global map. I have tried playing around with Geo Mashup, but was not able to get it to work with events-managers.
What did you end up using? I am hearing BePro is not exactly free and that the support is pretty choppy.
Looking forward to hearing from you!
Best,
YvanHi,
Thanks a lot. Would this work for on the global map view as well?
Best,
Yvan