• Hi!

    I’m currently developing a plugin and I have kind of an issue:
    I need to retrieve the posts written by all authors when there first letter starts with a letter given as a parameter…
    I used the method get_posts for all my other queries but this is the only one I can’t get!
    I though it would work with the wild card “*”, but not…

    Does anyone know if it’s possible with the get_post method?

Viewing 1 replies (of 1 total)
  • I’m thinking you’d need to query the DB to get the IDs of the posts where the author name starts with some letter, then feed those ideas to get_posts using the ‘posts__in’ parameter. As far as I know, you can’t use wildcards in get_posts. That first query isn’t going to be terribly efficient though, sadly.

Viewing 1 replies (of 1 total)
  • The topic ‘get posts by author name first letter’ is closed to new replies.