Hi,
On my directory a Business can only have 1 Place Listing – so when they go to add events the Event should automatically be linked to their only Place Listing.
Is there a simple way I can do this, I don’t really want them to have to type into the Search Business.
I thought I could use the filter geodir_event_show_business_fields_html – but I am not sure what to replace the dropdown with – ideally I could add a hidden field with the Link Place Listing is nut I am not sure what field this should be…. and I guess if the user is an admin they should be able to choose to link the event with other businesses.
I am looking at:
if(geodir_get_current_posttype() == ‘gd_event’){
remove_filter( ‘geodir_before_detail_fields’, ‘geodir_event_show_business_fields_html’,4);
add_action(‘geodir_before_detail_fields’,’stw_event_show_business_fields_html’,4);
}