Support

Account

Home Forums Add-ons Repeater Field Showing ONLY repeater rows that contain a certain keyword Reply To: Showing ONLY repeater rows that contain a certain keyword

  • Hi @bsebastian86

    I’m not sure how the search page works, but I believe you should be able to do it like this:

    if ( (strpos(get_sub_field('title'), $_GET["s"]) !== false) || (strpos(get_sub_field('content'), $_GET["s"]) !== false) ) {
        // display a sub field value
        the_sub_field('title');
        the_sub_field('content');
    }

    I hope this helps 🙂