Looking For Something?

[wps-forum-search-results]

Purpose

This shortcode will recognise any search terms entered via the [wpsforum-search] shortcode and display the results, with the search term (word or phrase) highlighted, for example:

Screenshot_17

Availability

Provided in the Extensions Plugin.

Customising

You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.

Example

[wps-forum-search-results]

Options

The following (which shows default values and an example of using the shortcode option) can be set via the admin dashboard (WPS Pro->Shortcodes) or added as options to the shortcode in your WordPress page, post or widget.

Display only if logged in (private=”0″)
Text displayed if have to log in (private_msg=”You need to login to search.”)
Label for results (label_results=”Showing results for “%s”:”)
Text for no results (no_results=”No results.”)
Show forum text (show_forum=”in %s”)
Show snippet (show_snippet=”1″)
Snippet length (snippet_length=”200″)
Show date (show_date=”1″)
Status (status=”all”)
Date format (date_format=”%s ago”)
Maximum number of results (max=”100″)
Sidebar