Month: May 2015

A URL to the Latest Post

After three years I have published now another WordPress plugin: Redirect URL to Post. As before, the reason was that I couldn’t find any other plugin providing what I needed. What I needed was a link that I could use on other sites and that would redirect to the latest post in a particular category. To be more concrete, I pulled the latest post of a blog to a weekly Mailchimp newsletter. Naturally readers of the newsletter should be taken to the full post by clicking on the title or “read more” link. But even after hours of trying, I did not manage to retrieve the post’s permalink with Mailchimp’s shortcodes.1 So instead I used the link to the entire list of posts of that category – better all than nothing – and readers would from there have to click on to the latest post. Then, however, I realized that it would be very handy to have a special URL that would automatically redirect to the latest post so that I wouldn’t have to worry …