Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to create a widget with the last post from a user. It should look like this:

POST TITLE Excerpt [...]

And i need to link the post title as a permalink to the post. I'll also be manually adding a user thumbnail linking to the user's posts and widget title manually.

I might need to use this widget more than once, for different users.

Can someone please provide me with the php code please? If user filter is not possible, a tag or category filter could also do.

Thanks a lot in advance!

share|improve this question

closed as too localized by toscho Jul 15 '12 at 22:48

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Take a look at aptly named Query Posts plugin, that provides widget that wraps and displays query.

Even if it doesn't fit your needs precisely, likely you will be able to reuse or extend code from it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.