WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Recent Searches Widget

This plugin shows recent searches in a sidebar widget.

How to insert widget anywhere in my theme?

Starting from version 1.1 it is possible to insert special theme tag to insert Recent Searches Widget anywhere in your theme. To do this, use new rsw_show_recent_searches() tag. By default it shows list of last searches using bullet list, like in sidebar. If you want to change this, you can pass up to three parameters when you call rsw_show_recent_searches(). They will be used to display HTML code at beginning of the list, at end of it, and between list elements. Default use (without parameters) is equivalent for following call:

rsw_show_recent_searches( "<ul>\n<li>", "</li>\n</ul>", "</li>\n<li>" );

If you want to use numbered list, you can use this:

rsw_show_recent_searches( "<ol>\n<li>", "</li>\n</ol>" );

When you want to put all items in one line and separate them by commas, please use following call:

rsw_show_recent_searches( "", "", ", " );

Requires: 2.7 or higher
Compatible up to: 2.9.9
Last Updated: 2011-10-24
Downloads: 11,543

Ratings

4 stars
4.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 0,2,0
100,2,2 0,2,0
0,2,0
50,4,2
0,2,0
0,3,0
0,2,0
100,1,1
0,1,0