Filter by Post Meta, Custom Field equal to page title

Forums › Forums › Search & Filter Pro › Filter by Post Meta, Custom Field equal to page title

Viewing 2 posts – 1 through 2 (of 2 total)
  • Trevor
    #264370

    I am unable to advise you on the usage of PODS, sorry. Are you trying to make a field in the form that has (maybe a select dropdown) a list of the post titles (one hopes the list will remain small, otherwise the user experience would be very poor?

    The problem is that post titles are not stored by WordPress in a way that we can make them in to a list to populate a form field (this I guess you already figured).

    If you want them to be available this way, you must add a custom field to the posts and duplicate the name in to that new field. For the existing posts, you would have to manually edit each expert.

    You could automate the making of the duplicate field for new posts, and even for any posts that you edit and simply save. This is an example of an automated field value fulfilment when the save (update) button is pressed in the edit post page:

    https://support.searchandfilter.com/forums/topic/datefilter/page/3/#post-238869

    And this is a Google search for some ideas on how to copy the post title:

    https://www.google.com/search?q=stackexchange+wordpress+save_post+copy+post+title+to+custom+field&oq=stackexchange+wordpress+save_post+copy+post+title+to+custom+field

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

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.