This extensible plugin allows you to run a custom WP_Query using a simple shortcode, then display the results using compatible nested shortcodes.
As of April 2026, Shaun's WP Query Shortcode is a WordPress page plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.4K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2012. Last updated 13 years ago — may have compatibility concerns. Top alternative: Post Type Switcher.
Written as a platform for plugin developers, this simple-yet-powerful plugin allows you to run a custom WP_Query using shortcode, then display the results any way imaginable using compatible nested shortcodes.
Add the following shortcode to any WordPress post or page:
[wpquery orderby="rand"] [wpq_index] [/wpquery]
In the example above, the [wpquery] shortcode performs a WP_Query using orderby=”rand” to display the results in random order. A full list of query parameters can be found here: WP_Query.
Next, the nested [wpq_index] shortcode displays the results of the custom WP_Query as an unordered list of post title links.
Written as a platform for plugin developers, this simple-yet-powerful plugin allows developers to write compatible plugins that ma…
| WordPress | 3.0+ requiredTested up to 3.4.2 |
| PHP | false+ required |
wpq_index shortcode function to exclude the current post/page from the list.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.