Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Post Meta option with post/term id’s

Viewing 4 posts - 1 through 4 (of 4 total)
  • Noeste IJver
    #235655

    Hello,

    We have a post meta field for a custom post type that saves id’s from other posts or terms.

    And we’re using S&F for searching and filtering this custom post type on the archive page of this post type.

    On the S&F form for this post type, we have a Post Meta field. We use the ‘choice’ option. We’ve configured this to automatically retrieve the options from the database. But the values that are shown, are ID’s. This doesn’t mean anything for users of our form.

    Is there a way to show the titles of the post/term that is linked to the ID? I know you have a solution for this when using ACF. But we’re not using ACF on this project.

    Hopefully you can point me in the right direction!
    -Kevin

    Trevor Moderator
    #235683

    Not an easy solution, sorry, no.

    You would have to code your own solution by running a query and modifying the form field labels, using this filter:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    Noeste IJver
    #235735

    Hi Trevor,

    Just what I was looking for. Already got it working, thanks!

    Ticket can be closed.
    -Kevin

    Trevor Moderator
    #235737

    Thanks for getting back to me. I will close this thread for now.

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

The topic ‘Post Meta option with post/term id’s’ is closed to new replies.