Code

Is Advanced Custom Fields supported?

« See all FAQs for Directories Pro plugin for WordPress

Is Advanced Custom Fields supported?

Yes, as of version 1.2.15 you can display fields created with the Advance Custom Fields plugin in the backend form as well as in the add listing/review form in the frontend.

In order to display fields in the frontend form, go to Directories -> [Your Directory] -> Content Types -> Listing (or Review) -> Manage Fields, click the green add element button and then click “ACF Fields” under the “Content” tab in the popup. Then select a field group from the list of ACF field groups in the “Field group” setting and click “Save Changes”.

In order to display ACF field values in Directories Pro displays, you can use the “Text” display element in the “Manage Displays” section of your directory (Directories -> [Your Directory] -> Content Types -> Listing (or Review) -> Manage Displays). The “Text” display element supports shortcodes so for example you can enter:

[acf field="your_acf_field_name" post_id="%id%"]

The “ id ” part above will automatically be replaced by the ID of the currently viewed listing (or review). Make sure to change “your_acf_field_name” with the actual field name configured in ACF.

For more details on displays in Directories Pro, please see https://directoriespro.com/documentation/getting-started/managing-and-customizing-displays.html

by
by
by
by
by
by