find last 5 posts over all blogs ?
-
Hay all.
I have created a custom page template that will list all our blogs and a small excerpt from them along with a snap of the blog itself(theme screenshot).
I am now working on a widget that will display the last 5 blog entries, but I want it to take the last 5 posts made globally to the site across all its blogs and if possible only one post per blog.
in the end the widget should display 5 blogs and a small sample of their most recent posts, if the last 5 global posts made were on the same blog it should only show 1 and then move to the next unique blog.
I recon I can handle most of this but its the sql to grab out just those last most recent and unique 1 blog 1 post type thing thats kicking me.
- The topic ‘find last 5 posts over all blogs ?’ is closed to new replies.