Title: andermurks's Replies | WordPress.org

---

# andermurks

  [  ](https://wordpress.org/support/users/andermurks/)

 *   [Profile](https://wordpress.org/support/users/andermurks/)
 *   [Topics Started](https://wordpress.org/support/users/andermurks/topics/)
 *   [Replies Created](https://wordpress.org/support/users/andermurks/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/andermurks/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/andermurks/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/andermurks/engagements/)
 *   [Favorites](https://wordpress.org/support/users/andermurks/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] File Upload](https://wordpress.org/support/topic/file-upload-45/)
 *  [andermurks](https://wordpress.org/support/users/andermurks/)
 * (@andermurks)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/file-upload-45/#post-10425117)
 * Hi,
 * in order to do that, you would need to make several changes in the events manager
   source files. Note however that this wouldn’t at all compatible with future EM
   updates.
 * If you want to do this, you can trace the relevant code bits by starting to look
   inside \events-manager\templates\forms\event\featured-image-public.php, \events-
   manager\templates\forms\event-editor.php and \events-manager\classes\EM-Event.
   php
 * You might be able to introduce a separate file upload form alongside the existing
   form, which could be significantly easier and upgrade safe, but you would still
   need to start looking into the files I have lined out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Location Form front-end](https://wordpress.org/support/topic/location-form-front-end/)
 *  Thread Starter [andermurks](https://wordpress.org/support/users/andermurks/)
 * (@andermurks)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/location-form-front-end/#post-10424714)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] LATT aren’t processed?](https://wordpress.org/support/topic/latt-arent-processed/)
 *  Thread Starter [andermurks](https://wordpress.org/support/users/andermurks/)
 * (@andermurks)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/latt-arent-processed/#post-10414473)
 * I’ve found the problem.
    In em-location.php on line 205-219 there was a change
   from 5.9.2 which rendered #_LATT into empty strings. Code in question:
 *     ```
       // old code
       foreach($location_meta as $location_meta_key => $location_meta_val){
       					$found = false;
       					foreach($this->fields as $field_name => $field_info){
       						if( $location_meta_key == '_'.$field_name){
       							$this->$field_name = $location_meta_val[0];
       							$found = true;
       						}
       					}
       					if(!$found && $location_meta_key[0] != '_'){
       						$this->location_attributes[$location_meta_key] = ( is_array($location_meta_val) ) ? $location_meta_val[0]:$location_meta_val;
       					}
       				}
   
       // new code (which doesnt work)
       foreach($location_meta as $location_meta_key => $location_meta_val){
       					$field_name = substr($location_meta_key, 1);
       					if($location_meta_key[0] != '_'){
       						$this->event_attributes[$location_meta_key] = ( is_array($location_meta_val) ) ? $location_meta_val[0]:$location_meta_val;
       					}elseif( is_string($field_name) && !in_array($field_name, $this->post_fields) ){
       						if( array_key_exists($field_name, $this->fields) ){
       							$this->$field_name = $location_meta_val[0];
       						}elseif( in_array($field_name, array('owner_name','owner_anonymous','owner_email')) ){
       							$this->$field_name = $location_meta_val[0];
       						}
       					}
       				}	
       ```
   
 * I’ve simply replaced the relevant lines in the 5.9.4 em-locations-php and it 
   works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] LATT aren’t processed?](https://wordpress.org/support/topic/latt-arent-processed/)
 *  Thread Starter [andermurks](https://wordpress.org/support/users/andermurks/)
 * (@andermurks)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/latt-arent-processed/#post-10414065)
 * That’s good to know, thanks. Unfortunately, I’ve only installed EM recently and
   have no older version available. Do you know where I could find a v5.9.2 download?

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