WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Shaun's WP Query Shortcode

This extensible plugin allows you to run a custom WP_Query using a simple shortcode, then display the results using compatible nested shortcodes.

Why did you develop this plugin?

Two of my earlier plugins - SortTable Post and jqDock Post Thumbs - essentially did the same thing: They got post data via WP_Query, then used a Javascript library to display certain information in a unique and interesting way.

Many of the feature requests I received for those plugins came from folks who wanted more granular control over the data that was retrieved by WP_Query (e.g. only show posts of a particular category / tag / post-type / taxonomy).

The only way I could accommodate those feature requests was to add more shortcode parameters to the plugin, but I was also adding shortcode parameters to handle how the post data was displayed. After a while, things started getting out of hand.

This plugin was the solution.

By separating the shortcode for 'getting post data' from the shortcode for 'displaying post data', I was able to simplify the shortcodes for users.

What shortcode parameters does `[wpquery]` accept?

It accepts all of the same parameters as WP_Query.

Where can I find compatible plugins?

Going forward, all of my plugins that use WP_Query will require this plugin to be installed. You can find my plugins here: Shaun's Profile

To find compatible plugins written by other authors, try searching the WP Plugin Repository for "Shaun's WP Query Shortcode".

If you're real savvy, you can even write your own compatible plugins! Just use the mnsp_wpq_index function that comes with this plugin as a template...and if you upload it to the repository, make sure you let people know that it requires Shaun's WP Query Shortcode to work!

How can I request support or report a bug?

Please post your question as a comment on the apporpriate plugin page of my website: MyNewSitePreview.com

Requires: 3.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-10-20
Downloads: 769

Ratings

5 stars
5 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,1,1 100,1,1