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

How to display custom field in search results?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to display custom field in search results?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47003
    dot832dot832
    Participant

    Please refer to my attached screenshot. I would like my search results to look like this:

    {titlefield}
    <p>{company_catalog}</p>
    <p>{company_state}</p>

    However it is not working. Please advise.

    Thank you.

    #47012
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Are the fields by any chance taxonomies and not post meta?

    In that case try:

    <p>{__tax_company_catalog}</p>
    <p>{__tax_company_state}</p>
    #47019
    dot832dot832
    Participant

    Hi, these are fields in a custom post type.

    Thank you.

    #47020
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I will have to take a look at this directly then, custom fields should work just fine.

    Can you please add temporary FTP and back-end access so I can check and debug? Thank you!

    #47022
    dot832dot832
    Participant

    You cannot access this content.

    #47023
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank you!

    I quickly checked and found the issue. The description field was turned off, I turned it back on here: https://i.imgur.com/nchNWr1.png
    It should have disabled the advanced fields with a message so it’s apparent, but for some reason the notification didn’t trigger. It should be okay now.

    #47024
    dot832dot832
    Participant

    Wow! Thank you very much for the quick response!

    #47025
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are very welcome 🙂

    If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.

    If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page and on the wordpress plugin repository, it’s greatly appreciated.

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