Posted: September 8, 2014 at 4:51 pm
|
I’m trying to add an instructor field using ACF. I’m using WP4.0, EE4 on a new installation. What specific code and Where exactly should I put the corresponding code in content-espresso_events.php and various other template files? |
|
Hi Erica, Have you checked out this guide already? https://eventespresso.com/wiki/add-sponsors-section-events-using-advanced-custom-fields/ |
|
Yes. That’s not so helpful, because it’s tied to registration. We need the instructor field on the event page, event table list, event calendar, etc. Basically, we need a clone of the “venue” feature for “instructor”. |
|
Hi Erica, In that case, you may need to look at custom development. Duplicating the Venue system probably wont be that easy as it will need to be tied to various parts of the plugin, especially as you need it in the calendar etc. We have a list of recommended developers here: https://eventespresso.com/developers/event-espresso-pros/ |
|
September 10, 2014 at 10:25 am Thanks, Dean. Is an instructor feature in the pipeline? Should we help develop that feature instead of creating a custom plugin that will become obsolete soon? |
September 10, 2014 at 12:39 pm Hi Erica, We’re not planning an instructor feature, and this is the sort of thing that we recommend building as a plugin because our goal is to keep ee core lean. Since there are a lot of use cases where an instructor feature would not be required (or desired) it’s a great idea for an add-on, but not a core feature. I think you’re on the right track with using the Advanced Custom Fields plugin to add the field to the event editor. Once you have the custom fields set up, the field values can be displayed via ACF’s template tag feature. Where you put the custom template tags is entirely up to you. You might want to place instructor info at the top, somewhere in the middle, or at the bottom of the event page. If there are places in the Event Espresso plugin code where you’d like to see an action hook or a filter hook that will help you make this possible, we have a process set up where developers can submit pull requests to the dev team. You’re more than welcome to sign up for github access here: https://eventespresso.com/developers/request-repo-access/ So as you’re building out your instructor-based features, if you run into a place where a hook will make it possible to not hack core, please by all means submit a pull request where you’d like the hook to be. |
|
The support post ‘Adding "Instructor" Field Using Advanced Custom Fields’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.