WordPress.org

Support

Support » Themes and Templates » Search by title

Search by title

  • Hi,
    Is there a way to filter (search) on the post title, including wildcard brackets ‘%’ or LIKE?

    Example:

    $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.