Support

Account

Home Forums General Issues Relational field as a widget

Helping

Relational field as a widget

  • Hi,

    I’ve created a custom post type Grapes and one that is Regions

    In WooCommerce I have wines as a product. I created a field group “Wine” which, among others, has 2 relational fields: one which enables me to select grape posts and which enables me to select region posts.

    Now, when I’m in the shop page, I’d like to have a widget that enables me to selects some grape or some region and that would select all the wines with that grape or coming from that region? Ultimately, I’d like that widget to show an autocomplete field.

    Can this be done with the PRO version?
    If not, what are the best tactics that I can use?

    Thanks,

    Charles

  • Hi @charlesg

    For something like that, you can try this tutorial: https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/.

    That tutorial uses the select field, but you should be able to use the post object field too. Also, please keep in mind that you need to modify WooCommerce archive page instead of the standard WordPress archive page.

    I hope this makes sense 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.