• Resolved andermurks

    (@andermurks)


    I need to provide a front-end form for locations, i.e. submit a location without an event. Is this currently included in any way?

    I’ve looked through the source code a bit, but I am a php novice and although it appears there is a front-end form for locations ( events-manager\templates\forms\location-editor.php ), I don’t understand how I would use this or find any reference to it in the code.

    Any help would be much appreciated, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Currently there is no way to submit Locations only for public. You would need to create your own form for it.

    Thread Starter andermurks

    (@andermurks)

    I was able to solve this, since all of the groundwork has already been done, just the shortcode wasn’t implemented.

    If anyone needs it, just create a small php plugin file and add this:

    
    function my_em_get_location_form_shortcode( $args = array() ){
    	return em_get_location_form( (array) $args );
    }
    add_shortcode ( 'location_form', 'my_em_get_location_form_shortcode');
    

    Add the shortcode [location_form] anywhere on your site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Location Form front-end’ is closed to new replies.