Support » Plugin: Plugin Name: Author+ (Lite) » Search posts by author

  • Hi all

    I have a search form query… I want to be able to let my users search for posts by any particular author.

    I have many authors listing posts and users have requested to be able to use the search field to find posts by their chosen author.

    I’m looking to find a php code along the lines of:

    $query .= “($wpdb->users.user_nicename LIKE ‘{$n}{$term}{$n}’)”

    The above code does not return any results. Does anyone have a solution?


  • The topic ‘Search posts by author’ is closed to new replies.