Searching pages by custom fields

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Searching pages by custom fields

This topic contains 15 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 years, 10 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #27411
    kevward2580
    kevward2580
    Participant

    Hi,

    I’d like to be able to use this to search pages, which seems easy enough as you can select the content type as “Pages”.

    However, I’d like to search the pages by custom fields. But on the custome fields section it only allows me to search for custom fields in “post meta” and “user meta”. Does that mean I can search by custom fields on pages?

    Thanks

    Kev

    Attachments:
    You must be logged in to view attached files.
    #27418
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Post meta is the same as custom fields in this case – any custom field for any post type, including pages.

    If you want to search and return pages/posts/any cpt by custom fields, then you are looking for these options. The one on the screenshot are for the front-end filters, which is different.

    Best,
    Ernest Marcinko

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


    #27439
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27441
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #27442
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27450
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #27474
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27487
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #27498
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27503
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Thank you! I’m afraid the same issue happens there as well: https://i.imgur.com/mycKhMv.png
    The process has no permissions to make edits to the files unfortunately.

    Best,
    Ernest Marcinko

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


    #27613
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27637
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you very much, I was able to find the problem.

    There is another field group under the ACF options, which was in the trash. When requesting the field options from ACF, it returned the one that was “trashed”, and so no valid options were returned. Once I restored the group from the trash, it started working again.
    It has the same field names, so that is probably the issue. You can leave that group as it is, or perhaps delete it permanently, to aviod the field name duplicates.

    Best,
    Ernest Marcinko

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


    #27652
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
    #27656
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #27779
    kevward2580
    kevward2580
    Participant
    You cannot access this content.
Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.