• Resolved markboulder

    (@markboulder)


    I’ve created a custom taxonomy for locations called “supplier” which shows and works great on the backend when adding locations. However, it does not show as an option when using the location submission form, and I need it to. How do I enable the front end location submission form to have this custom taxonomy as an option?

    A somewhat unrelated question is how do I make location publishing pending approval from an admin for certain user levels, in the same way that event publishing works. Is there a capability that I can adjust for this?

    I’m running v. 5.3.6.1.

    http://wordpress.org/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    how about using custom location attributes instead (much easier) ? – http://wp-events-plugin.com/documentation/event-attributes/

    Thread Starter markboulder

    (@markboulder)

    I need locations to be able to be assigned to more than one of these taxonomies and am using these for custom taxonomy archive pages and searching, so custom location attributes would not meet my needs. I wouldn’t imagine that adding this custom taxonomy as an option on the Location Submission form is that complicated (it already shows on the backend add/edit location page). Any ideas?

    Also, any ideas for my other question regarding enabling approval status for locations?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    taxonomies are easier to use now (in a later update than what you have) but you still would need to add PHP code to make it appear on your search forms:

    http://wp-events-plugin.com/tutorials/using-additional-custom-taxonomies/

    it is however much less complicated to add due to the above:

    you’d use something like the first snippet here:
    http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    adding it to the form:
    http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields/

    Thread Starter markboulder

    (@markboulder)

    Thanks for chiming in Marcus. I’ve already created the custom taxonomy, and have applied it to the search forms successfully. What I need to do is have the taxonomy show up on the locations submission form, so that users can choose this taxonomy when creating a location. It shows up on the backend create location form and works great, it just doesn’t show up as an option on the front end location submission form. Any way to enable this? What file controls this form, and what would I need to add to show the custom taxonomy as an option? Thanks so much for your help.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    try to replicate forms/event/categories-public.php then add it in your location submission form

    e.g.
    em_locate_template('forms/location/custom-taxonomy-public.php',true)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    the front-end is rather tricky, because you need to save those categories manually.

    You’ll need to delve into classes/em-event.php and see the em_event_save and em_event_get_post functions (these are used on front-end only) for relevant filters and calls to save categories.

    Then, you’d want to look at the categories class – classes/em-categories.php and see how we save categories to events.

    The template Angelo mentioned would be useful for making the form field too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Location Submission Form and Custom Taxonomy’ is closed to new replies.