How can I create a link to a category–to it’s most current/recent post?
I want to display the actual post. I do not want to display the category with one post listing in it.I’m going to be really silly here… 🙂
But in my sometimes wild and limitless imagination something like this should already be available:
domain.com/category-name/index.php?newest
or
domain.com/category/category-name/index.php?latest&wpusers=happier-now
I’ve searched and there are many PHP level solutions. And this site won’t let me post more than two links here so sorry about the limitation feature
…and for reference here are the best of the related links I looked into (some are 100% in context but dated so I don’t know if they’re still effective with WordPress):
Resolved
Link to most recent post in one category?
Link to latest post in category
I had about ten more relevant links…
But again, it really seems like there doesn’t need to be a PHP, function or template level way ONLY to do this. There are so many cool little ?this and &that elements added to the URL that there should be one that gets the latest post.
A good example is a YouTube playlist link. It loads the latest video and allows all kinds of &height &width &rel=0 abilities.
I’m kinda surprised this isn’t a core WordPress feature.
Right now I’ve got several widget variations which can display a recent or featured post on the front page with an excerpt and a featured image. When someone clicks on the title, featured image, or Read More, they’re taken to that post.
So I can see widgets can create the links–I’m just out of my depth figuring out how to leverage the same concept to create a link without displaying everything.