• Resolved nativa1

    (@nativa1)


    Hi, how search text in post meta, meta_query too?

    only search text for title and descriptión, i need search in all post meta dinamic fields or custom field ej: _custom-text-20

    would it be possible to add it here?

    add_filter( ‘atbdp_listing_search_query_argument’, function( $args ){

    }

    • This topic was modified 2 years, 8 months ago by nativa1.
    • This topic was modified 2 years, 8 months ago by nativa1.
Viewing 1 replies (of 1 total)
  • Hi @nativa1,

    It is quite complex. Meta Queries gets checked only after the previous conditions are met and there are matches. So for example, if you search for ‘something’, it’ll try to find matches in Post Titles and Post Descriptions, if it finds any match, then it’ll see if those matches the conditions on Meta Query, so even if you set your Custom Text field to be checked through the Meta Query, it’ll only get checked if there’s a match with the Title and the Description. If I understand you correctly, what you’re trying to achieve will require that check for Custom Text happen outside of Meta Query, I’ll look into it and see if I can figure something out for you.

    Regards,
    Mahdi.

Viewing 1 replies (of 1 total)
  • The topic ‘How search text in post meta too?’ is closed to new replies.