WordPress.org

Ready to get started?Download WordPress

Forums

Get recent posts by post slug (1 post)

  1. Forlornson
    Member
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags