Search by title
Is there a way to filter (search) on the post title, including wildcard brackets ‘%’ or LIKE?
$args['name'] = '%'.$search_term.'%'; $loop = new WP_Query( $args ); if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();
- The topic ‘Search by title’ is closed to new replies.