woozys
Forum Replies Created
-
Hi Marcus
Thanks! I achieved it by using the following:
$EM_Location = new EM_Location($post_id, 'post_id'); $EM_Location->save(); return $EM_Location->location_id;Even though it works, I get this error message every time I run the function:
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method EM_Event_Post_Admin::save_post() should not be called statically in /homepages/45/d391709137/htdocs/eventhread.com/wordpress/wp-includes/plugin.php on line 406Any tips?
Thanks so much for your help!
Thanks, agelonwi.
If I understand correctly hooking into
em_location_savefilter like shown in the example would execute a custom function whenever location is saved.What I want to do is to do whatever Events Manager would normally do (add wp_em_location row, etc.) whenever I insert a location. Is it necessary for me to rewrite this code in the form of a custom function myself, or is there a better way to trigger this action?
Many thanks for your help and pardon my lack of understanding.
Ok, I managed to import locations and relevant meta data with
wp_insert_post()andadd_post_meta()functions.I can see locations fine in the front end, however, related location events are not shown because location was not transferred to
wp_em_locationstable and does not have alocation_idassigned.There must be a hook or action that I could perform to get the data into
wp_em_locationstable and get alocation_id?Thanks in advance
that was it! now works just fine!
Thank you very much, Marcus, you’ve developed a truly great plugin!
hey, actually, we have no users, just one admin account. thanks
I have deactivated all plugins except Events Manager and switched to a default Twenty Ten theme. Problem still persists in the Events > Settings page.
It loads the General Settings tab and then gets stuck for about 30s only to spew a Fatal Error message.
When I had around 10,000 records it would get stuck but still load the rest of the settings, however, when I reached +20k events/locations, the Settings page stopped loading all together.
What is surprising that Events and Locations lists are loading just fine and I have no performance issues in the front end.
Thanks for your help.
Thanks for your answer, agelonwl, but I have already increased both my wp memory and server memory to 3000M. I am actually running it on a local MAMP server so there are no imposed restrictions from the host.
I am still not able to open the Settings page.
There is still something wrong within the Settings page request. I can open fine Locations, Events, Bookings and any other pages just fine, but for some reason Settings page requires an extraordinary amount of memory to show up.
Perhaps someone who understands the Events Manager infrastructure could elaborate?
Thanks,
TadasForum: Plugins
In reply to: [WP Content Slideshow] Slider Positionsame problem here! I have inserted the shortcode in my content, however, I can see two sliders: one below the header and one where I actually wanted it, where I inserted the shortcode.