While developing for Wordpress you sometimes need to create a “non-widgetized” custom sidebar. You would also like to have a list of your most recent posts in that custom sidebar. Unfortunately, Wordpress doesn’t have a “recent posts” template tag.
Here is a simple, easy to implement PHP file you can use to generate a list of recent posts in your custom “non-widgetized” sidebar. Download this file: recent_posts.php. Now, upload it to the wp-content/themes/yourtheme directory, and insert the following code in your sidebar.php file where you want your recent posts list to appear:
<?php include (TEMPLATEPATH . "/recent_posts.php"); ?>
If you open up recent_posts.php in your favorite text editor you have the ability to change how many posts you want to display. You can also be more specific in what posts you want to display by passing different arguments to query_posts.
This entry was posted by Drew Strojny at 10:00 am on May 31st, 2008.
Filed under Web Design with the following tags: wordpress
Jestro was featured in the Idaho Business Review today. The article does a great job of talking about our our new foray into table top advertising here in Boise. Here is a link to a re-print of the article:
This entry was posted by Drew Strojny at 10:46 am on April 7th, 2008.
Filed under Latest News with the following tags: Idaho Business Review
After opening our doors only four short months ago we have re-designed our website here at Jestro to reflect all the exciting changes our business has gone through during that time.
This new website is more dynamic, we will keep it updated with our latest work, which you will always be able to find in the portfolio. We will also be posting regular entries here on this Wordpress powered blog. These entries will discuss a variety of topics including:
- The latest news here at Jestro.
- Marketing articles.
- Web design, graphic design, and Wordpress tutorials.
- Anything else we think might be helpful.
If you want to subscribe to the web feed for these entries you will find a link to the RSS format of our feed in the main menu to the right. If you would like to receive an email every time a new entry is posted please follow the “Email Subscription” link in the sidebar and you will be added to our email list.
This entry was posted by Drew Strojny at 10:53 am on April 5th, 2008.
Filed under Latest News with the following tags: jestro.com, wordpress