Show recent articles on your Wordpress blog December 30, 2005
John Vanhara
First I have to say that I am not programmer. And I am not going to learn now:-) If something is simple enough then I do it if it is too complicated I let programmers do it. Sometimes I get really amazed how something is very simple. It happened with Wordpress lately when I tried to do different modifications and found out how simply the information can be found and the change made.
I have installed nice theme on Las Vegas Commercial Real Estate website using Wordpress blog. What I couldn’t figure out how to make RECENT POSTS appear on the right sidebar.
The solution is very simple. Recent links is considered as Archive. I had the Archive links in the sidebar organized by month (November, December).
It looks like this:
-
< ?php wp_get_archives('type=monthly'); ?>
Let’s say you want to list the last 15 posts you’ve written by their title. Replace the type=monthly as follows:
< ?php wp_get_archives('type=postbypost&limit=15'); ?>
And it works! The total time about 5 minutes together with searching for the information. If you need help with small modifications of your Wordpress log do not hesitate to contact us.
- Posted in : Wordpress
- Author : John Vanhara
Comments»
no comments yet - be the first?