I like to have a common element at the end of all my blog posts, but before the comments section. Sometimes this is to highlight upcoming shows, other times it is a special sales discount, a cool tagline, or like here on the lab blog, the Buy me a coffee block. There are many WordPress […]
Get recent blog posts outside of WordPress pages
On my photography site, I display a list of the last 5 blog posts in the footer on all pages. I use the rss feed to get the most recent posts outside of the wordpress environment. This is how I do it using phplugins: And then I can call $this->dlp_get_latest_blog_posts(10, ‘my-link’) wherever I would like […]