Looking For Something?

[wps-forum-show-posts]

Purpose

Flexible way to show forum posts.

This forum shortcode has lots of options. However, it is powerful and will allow you to display forum activity elsewhere on your site, whether as part of a WordPress page, or in a Text/HTML widget.

Although you can tailor it to display other output, it is primarily designed to show recent forum activity, whether in columns (which are optionally shown) or as a summary.

Availability

Provided in the Core 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

Assuming you have a forum with a slug of my-forum, a popular use of this shortcode is in it’s summary format:

[wps-forum-show-posts slug="my-forum" summary="1"]

which would display the following (in this case in a Text widget):

Screenshot_6

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.

Order value (order=”date”)
Order (orderby=”DESC”)
Status (status=””)
Include topics (include_posts=”1″)
Include replies (include_replies=”1″)
Include comments (include_comments=”0″)
Closed prefix (closed_prefix=”closed”)
Show author (show_author=”1″)
Format of author text (for above) (author_format=”By %s”)
Link author to profile page (author_link=”1″)
Show date (show_date=”1″)
Format of date text (for above) (date_format=”%s ago”)
Show snippet (show_snippet=”1″)
Text for link to forum post (more_link=”read”)
Text shown if no posts (no_posts=”No posts”)
Maximum length of title (title_length=”50″)
Maximum length of snippet (snippet_length=”30″)
Number of posts displayed (max=”10″)
Base date (base_date=”post_date_gmt”)
Summary sentence and author avatar
Show summary sentence and avatar (summary=”0″)
Format (summary_format=”%s %s %s %s ago %s”)
Size of avatar (summary_avatar_size=”32″)
Text for started (summary_started=”started”)
Text for replied to (summary_replied=”replied to”)
Text for commented on (summary_commented=”commented on”)
Maximum length for title (summary_title_length=”150″)
Maximum length for content snippet (summary_snippet_length=”50″)
Show unread if applicable (summary_show_unread=”1″)
Sidebar