Tag: "sidebar"
How to list the 4 latest posts with only one post per author in WordPress
Rebecca Markowitz | September 14, 2009 | 5 Comments
Recently, one site we were working on needed a sidebar that would show the 4 most recent posts on the site. But here’s the catch: they wanted only one post per author. And, each author had to have the role of “author” as opposed to contributor or admin.
The site in question is still in ...
View Post
How to rename widgetized sidebars in WordPress
Rebecca Markowitz | November 20, 2008 | 1 Comment
You can manage multiple sidebar widgets in WordPress. To do so, you go to the Widgets page in the Admin, and select the Sidebar you want to manage. If you have 1 widgetized sidebar, the name "Sidebar 1" is not a big deal for managing it. But what if you have 5 or ...
View Post
Easily add unwidgetized WordPress plugins to widgetized sidebar with Custom Function Widgets plugin
| February 8, 2008 | 1 Comment
One of the reasons I hesitated to use widgets is because there are many useful plugins that aren't widgets and demand that you add a snippet of code to your sidebar, something you can't really do with widgets.
Well, now you can widgetize your sidebar and add both widgets and non-widget plugins to it with ...
View Post
How to add a tabbed interface to your WordPress blog
| January 24, 2008 | 2 Comments
Headsetoptions has a great review of the types of tabbed interfaces available, and a tutorial on how to add one to your WordPress blog.
A tabbed interface is one of those boxes that you often see in the sidebar of ...
View Post
Display recent posts in WordPress sidebar
| November 11, 2007 | 56 Comments
Here's a bit of code to put in your sidebar to display the most recent posts on your blog:
<?php $myposts = get_posts('numberposts=10&offset=1');
foreach($myposts as $post) :?>
<li><a href="<?php the_permalink(); ?>"><?php the_title();?></a></li>
<?php endforeach; ?>
You can set the number of recent posts to appear on the first line of code where it says numberposts=10 - change the 10 ...
View Post
Display a selected number of posts from one category in the sidebar
| October 29, 2007 | 28 Comments
<?php$postlist = get_posts('category=6&numberposts=5');
foreach ($postlist as $post) :?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li><?php endforeach; ?>
Use this in the sidebar to display a defined number of posts from a specified category. Where it says "category=6" replace the 6 with the relevant category ID number, and where it says "numberposts=5" replace the 5 with the number of ...
View Post
Embed Finetune in your blog
| March 31, 2007 | 0 Comments
Some of you may have noticed that I added a Finetune player in the right-most sidebar. Why? Only because I LOVE Finetune. As opposed to the other online music services, it actually lets you choose the songs you want to hear, as opposed to guessing what songs you like based on songs ...
View Post
Inserting editable text in the sidebar – part II: Widgets
| March 25, 2007 | 5 Comments
In an earlier post, I wrote about my quest to find a way to easily allow users to modify text in the sidebar of a site I was creating. After trying a few different options, I happily settled on the Improved Include ...
View Post
Inserting editable text in the sidebar
| March 20, 2007 | 6 Comments
Update: since I wrote this post, I discovered some problems with this solution. I ended up using a different solution, which you can see in Inserting editable text in the sidebar - part II: Widgets.
I created a site for a client based on ...
View Post
Showing different sidebar on different pages
| February 21, 2007 | 8 Comments
To show a different sidebar on different pages, replace the standard call for the sidebar:
<?php get_sidebar(); ?>
with the following code:
<?php include ('sidebar2.php'); ?>
The same can be done to call different headers, i.e. instead of <?php get_header(); ?> use <?php include ('header2.php'); ?>For more information, see Different Sidebars Anyone? on the ...
View Post








