I would like to implement something like "recent posts" in a static page:
http://themes.codehunk.me/insignio/ (at the footer)
How I would be able to do this without a widget?
|
I would like to implement something like "recent posts" in a static page: http://themes.codehunk.me/insignio/ (at the footer) How I would be able to do this without a widget?
| |||
|
feedback
|
|
Wordpress provides a function for that kind of request: query_posts().
Once you've performed the query, you can display the posts the way you want. | |||
|
feedback
|
|
It kind of depends on what you're going for. If you want to do a "page of posts" -- other words, create a new page template file -- you can create a secondary loop on that page. The codex has an example of this and here's another, very stripped down example.
If you're looking for something that you can drop into any page, the best solution would be a shortcode. You would need to create a shortcode that fetches several posts and returns them in a list (or whatever you want). An example:
| |||||
feedback
|