• Resolved tkhan

    (@tkhan)


    Hi, I know this is a big request and not a support issue. I have created categories for the venues so I can break them down into groups. I can display the groups etc the only area I can’t sort is making them available to include in the venue form, basically I wondered if there was a hook or a function I could use or would I have to start modifying core files to achieve this.

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tkhan

    (@tkhan)

    I can change the dropdown by changing the cpt in the wp-event-manager-form-field-editor-field.php file but nothing saves from the form itself.

    Thread Starter tkhan

    (@tkhan)

    I added the following code into the submit vernue form it creates a new taxonomy term (using the id of the selected taxonomy).

    ‘location_category’ => array(

                        ‘label’ => __( ‘location Category’, ‘wp-event-manager’ ),

                        ‘type’ => ‘term-select’,

                        ‘required’ => false,

                        ‘placeholder’ => ”,

                        ‘priority’ => 9,

                        ‘default’ => ”,

                        ‘taxonomy’ => ‘location_category’

                    ),

    Plugin Author Rita Kikani

    (@kikanirita)

    Hi @tkhan ,

    Yes, we provided hooks to customize any feature of the plugin, So, you just need to use that hook to make any customization or add additional functionality.

    To add field any venue form, you can use “submit_venue_form_fields” filter hook.

    apply_filters(‘submit_venue_form_fields’, $field_array);

    Using this filter, you can add any custom field into your venue form at backend + frontend.

    If you need further guidance please let us know here, we will help you.

    Thank you.

    Thread Starter tkhan

    (@tkhan)

    Hi, thanks for the reply, unfortunately, I wouldn’t know where to start to write a function or a hook. Do you have an example of adding and saving a field that I could use as a starting point?

    Thanks

    Tony

    Thread Starter tkhan

    (@tkhan)

    I sorted it by changing the submit venue form taxonomy save part from sanitize text to intval to stop the numbers saving as text.

    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating Venue Categories’ is closed to new replies.