This plugin shows recent searches in a sidebar widget.
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: 4 years ago
Active Installs: 900+
Got something to say? Need help?