Display random blog posts in content boxes
I’m new to WordPress but quickly learning.
On my website I have three content boxes, and I would like to be able to display a random blog entry into each, so that they don’t duplicate and show the same three at any time. Ideally, I would like to be able to randomly generate say out of the last 10 posts, and pull the title to display as a title, with the feature image, and a small text overlay providing a few lines of text which is hyperlinked.
With the help of a friend I have managed to create a plugin which pulls a random post title, which does not duplicate, and is hyperlinked. And I have managed to somewhat canabalise another plugin to be able to display this as a text overlay when you mouse over the image, however this would be better if there was a slightly transparent text box permanently over the image.
It’s taken me a long time to get to this stage, I have tried searching for a plugin that does this (something must exist!). But maybe I’m being too specific.
Can anyone help with this? Like I said my knowledge is minimal, I can provide the code that has been written if necessary however I believe it’s a simple database lookup and retrieval.
Thanks in advance!
- The topic ‘Display random blog posts in content boxes’ is closed to new replies.