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?

This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47003
    dot832
    dot832
    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.

    Attachments:
    You must be logged in to view attached files.
    #47012
    Ernest Marcinko
    Ernest 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>
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47019
    dot832
    dot832
    Participant

    Hi, these are fields in a custom post type.

    Thank you.

    #47020
    Ernest Marcinko
    Ernest 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!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47022
    dot832
    dot832
    Participant
    You cannot access this content.
    #47023
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47024
    dot832
    dot832
    Participant

    Wow! Thank you very much for the quick response!

    #47025
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.