Title: locations
Last modified: August 21, 2016

---

# locations

 *  Resolved [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/)
 * On my pages I have an add event page with `[event_form]` inserted,
    what is the
   similar code to create a page with **add location**?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884154)
 * fortunately, we have this snippet created few weeks ago – [http://pastebin.com/gSdnGgxH](http://pastebin.com/gSdnGgxH)
 * note: this is just a starting snippet; any modification should be done by you.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884169)
 * 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’);`
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884174)
 * The code needs to be added to the functions.php file of your theme.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884178)
 * 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](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884179)
 * Now I can no idea what happened then did a tracert now can login
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884180)
 * Hosting company firewall!!!!
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884195)
 * 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
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884196)
 * you can use wordpress is_user_logged_in() – [http://codex.wordpress.org/Function_Reference/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](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884197)
 * ok, may leave this for a while as it look s like I need a bit more understanding,
   thanks though

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘locations’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [mrppp](https://wordpress.org/support/users/mrppp/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/locations-2/#post-3884197)
 * Status: resolved