WordPress.org

Forums

How do I get the last post's permalink from a certain category? (3 posts)

  1. fwaokda
    Member
    Posted 6 years ago #

    I want to have "top stories" from a couple of categories I have. So I'm trying to get the permalinks from the last story in a category or two. I tried using query_post and then get_permalink but it seems to mess up my main feed.

    Little extra, is there a plugin that links a image with a post? I completed a method where I retrieve the last image uploaded to a certain directory at the moment. It would be nice to have a plugin that does this better though. So, if anyone knows of a plugin that links an image with a post without placing said imagine in the post that would be awesome! Thanks!

  2. fwaokda
    Member
    Posted 6 years ago #

    bump! anyone? main question I was needing answered was how can I retrieve the latest premalink of a post from a specific category and store it into $lastPermalink. Thanks!

  3. klagreca
    Member
    Posted 6 years ago #

    check this out:
    http://www.dagondesign.com/articles/latest-post-from-each-category-plugin-for-wordpress/

    I think it's exactly what you're looking for!

    K

Topic Closed

This topic has been closed to new replies.

About this Topic