fortunately, we have this snippet created few weeks ago – http://pastebin.com/gSdnGgxH
note: this is just a starting snippet; any modification should be done by you.
Thread Starter
mrppp
(@mrppp)
I,m struggling, if you have the time could you give an idiots guide what I need to do and where to put things.
Just want it like the add event only allow people to add locations (VENUES in my case)
I.E where to I put this `function em_mod_location_form(){
em_locate_template(‘forms/location-editor.php’,true);
}
add_shortcode( ‘location_form’, ’em_mod_location_form’ );
`
The code needs to be added to the functions.php file of your theme.
Thread Starter
mrppp
(@mrppp)
OK big issue now,
copied that then could not logout, so copied original functions.php back now can.t login???
Copied the whole template folder back, still can’t register or login
Thread Starter
mrppp
(@mrppp)
Now I can no idea what happened then did a tracert now can login
Thread Starter
mrppp
(@mrppp)
Hosting company firewall!!!!
Thread Starter
mrppp
(@mrppp)
I have this working now, but it does not require login or register to add a location, how do I get it to require login/register
It allows you to enter details then after submitting/updating it says Unauthorized Access
how do I get it to ask you to register before being able to add a location
The page I created I included [location_form]
and added `function em_mod_location_form(){
em_locate_template(‘forms/location-editor.php’,true);
}
add_shortcode( ‘location_form’, ’em_mod_location_form’ );` to functions.php
you can use wordpress is_user_logged_in() – http://codex.wordpress.org/Function_Reference/is_user_logged_in
or see template file event-editor.php on how we did it
Thread Starter
mrppp
(@mrppp)
ok, may leave this for a while as it look s like I need a bit more understanding, thanks though