Support

Account

Home Forums General Issues Choose taxonomy, which then filters post link

Helping

Choose taxonomy, which then filters post link

  • Hi,

    I’d like to have two fields in a repeater. One will be a taxonomy selection and the other will be a post link selection. I would like the range of posts available for selection to be filtered by the selection in the taxonomy field.

    Now I know that there is a post object field type, which lets you filter the post selection by taxonomy and post type, but as I understand it it has to be ‘hard coded’ from the outset. I’d like to be able to filter the posts by taxonomy on the fly.

    Any ideas? Thanks!

    Will

  • Hi @MadeGood

    This kind of trigger AJAX functionality does not yet exist for the ACF plugin.
    You can however, use the relationship field to filter the posts by a taxonomy.

    However, you will not be able to save the taxonomy as a sub field value.

    This said, it would be possible to write some custom jQuery which triggered a custom AJAX call on change of the taxonomy select field. Your AJAX call could then query and return post data which you would then update the post_object field with.

    Hope that helps.

    Thanks
    E

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

The topic ‘Choose taxonomy, which then filters post link’ is closed to new replies.