This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Post title missing in a custom field frontend search setting

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Post title missing in a custom field frontend search setting

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #53604
    nikpapan_VBIMnikpapan_VBIM
    Participant

    Hello team,

    i would like to include a custom field in the frontend search settings. The field is an ACF (name: primary_locations_merchant) assigned to WooCommerce products. It is a Post Object field that references another custom post type (locations), with the return format set to Post Object.

    The issue I’m facing is that the {get_values} method currently returns the post IDs instead of the post titles.

    You can view an example here: https://goldmall.ezlink.gr/search-test

    For reference, I have provided the following screenshots:

    https://goldmall.ezlink.gr/1.png
    https://goldmall.ezlink.gr/2.png
    https://goldmall.ezlink.gr/3.png

    Please let me know if admin access is needed to investigate further.
    I would appreciate your help in correcting the syntax and adjusting the functionality accordingly.

    Best regards

    #53606
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Thank you very much for all the details, looks like there is a mix up when fetching the post titles, I’m not sure why though, it works on my local test server.

    Can you please add a temporary back-end access? I would like to investigate this further, it’s probably a very minor bug somewhere hiding from me 🙂

    #53608
    nikpapan_VBIMnikpapan_VBIM
    Participant

    Hey Ernest. I just updated the private details. Thanks in advance.

    #53609
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thanks!

    Luckily this wasn’t a bug, there was only a parameter missing from the get_values so it treats the values as post IDs: https://i.imgur.com/c7qRMB1.png

    I completely forgot about telling you, and on my test I was already using it. I have added it for you, now everything should be all right 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.