WordPress.org

Support

Support » Plugins and Hacks » Get recent posts by post slug

Get recent posts by post slug

  • Hey!
    Im running a music webzine, using wordpress. And I have a seperate Page per artist. This page contains all kinds of information, and I’d like a little piece “Latest News About This Artist”

    Till now, I posted all the music news, in a catagory named “News”. I am able to get the 5 latest post from that catagory or stuff like that, but I want the 5 latest posts of thát artist.

    My idea was to use the post slug, because my slugs contains the artists’ name, but I cant seem to figure out how to do this

    It will be comething like get_posts('"5",slug"artistname") or something like that. Does anyone have any idea how to do this, or know any plugin that cán do this?

  • The topic ‘Get recent posts by post slug’ is closed to new replies.