Forum
Linking directly to the latest post of a specific category?
Hi Drew,
Is it possible to pull into a page the latest blog post of a specific category? I'd like to have a link in the main navigation to a 'Designer of the Month' (which would be a blog post) that displays the 'full' post of most recent designer (i.e. no listing). I have a 'Designer of the Month' category setup in the blog app. Any pointers as to how I might do this.
Regards - Nick
Yes, filter by category, order by date in descending order and take just one result.
Hi Drew,
Got this working following your advice, however how do I pull in the associated comments and add a comments form? (not sure how I pull in the correct id)
Both of those functions take either a
postID
or apostSlug
to find the matching post. What does your code look like?I'm using to get the post…
and then
to get the comments and the form. However neither show up. I think its because the slug isn't being appended to the url
Try:
and then
…like a dream, many thanks Drew.