WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: custom-query-shortcode (Used by 3 domains)

Custom Query Shortcode

👤 Peter Hebert 📦 v0.5.0 🔗 Plugin Homepage

This plugin gives you [query] shortcode which enables you to query and output any posts filtered by specific attributes.

Usage

You can use most parameters supported by WP_Query class to filter the posts; you can query for specific post types, categories, tags, authors, etc.

Other supported parameters

Aside from WP_Query parameters, the shortcode also supports the following additional parameters:

  • featured: to query for sticky posts which by default are excluded from the query.
  • thumbnail_size: to specify the size of the {THUMBNAIL} images. You can use built-in image sizes or custom ones you’ve defined.
  • content_limit: to limit the number of words of the {CONTENT} var; by default it’s “0” which means it outputs the whole content.
  • posts_separator: text to display between individual posts.
  • lens: custom output template – see description below.
  • twig_template: output template using Twig templating engine – requires the Timber library.

Formatting the output

You can define how you want to format the output inline within an opening [query] and closing [/query] tag.
Available keywords are: TITLE, CONTENT, AUTHOR, AUTHOR_URL, DATE, THUMBNAIL, CONTENT, COMMENT_COUNT.

The following example will display the latest 5 posts from the category with the ID of 3, showing a post title and comment count, with a link to the post:
[query posts_per_page=”5″ cat=”3″]

{TITLE} ({COMMENT_COUNT})

[/query]

Grid display

With the “cols” parameter you can display the output in a grid.
[query posts_per_page=”3″ cols=”3″] {THUMBNAIL}

{TITLE}

{CONTENT} [/query]
will display the latest 3 posts in the defined template, in 3 columns.
The plugin will automatically divide the grid into rows based upon the ‘posts_per_page’ option, divided by the ‘cols’ option.

Lenses (output templates)

With the “lens” parameter you can customize the display of the query results using a template. Some basic lenses/templates are provided:

  • ul: unordered list of linked post titles.
  • ul-title-date: same as ‘ul’, but also displays the posted date.
  • article-excerpt: series of articles, with a header containing the linked post title, and the excerpt.
  • article-excerpt-date: same as ‘article-excerpt’, but also displays the posted date.
  • cards: displays the post thumb above the header with linked post title, followed by the excerpt.

Bootstrap lenses

Some pre-defined lenses/templates are provided which use JavaScript Components from the Bootstrap CSS framework. The generated markup is compliant with the 5.x version of Bootstrap.

This feature relies on Bootstrap library to be already loaded on the page, the plugin does not include it.

If you’re using a Bootstrap-based theme, this should work; otherwise you can use the Bootstrap plugin).

Tabs

This will show the latest 3 posts in a tabbed widget.
[query posts_per_page=”3″ lens=”tabs”]

Accordion

This will create an accordion widget of all our posts from the “faq” post type.
[query posts_per_page=”0″ post_type=”faq” lens=”accordion”]

Carousel

This creates a carousel of latest five featured posts:
[query posts_per_page=”5″ featured=”true” lens=”carousel”]

Custom Lenses/templates

You can create your own custom templates and put them into one of these pre-defined folder names within your theme:

  • ‘query-shortcode-templates’
  • ‘partials/query-shortcode-lenses/’
  • ‘html/lenses/’

Or simply specify your own subfolder in the ‘lens’ parameter:
[query lens=”folder/template-name”]

Twig Template Support

Starting with version 0.4, you can use Twig templates for your output. Support for Twig is provided by the Timber library.

This requires that Timber 2.x be installed as a Composer dependency.

To use a Twig template for your query output, simply use the 'twig_template' parameter instead of the 'lens' parameter, and provide the path to your template. By default, Timber looks within the views folder in your active theme. You can change the default template location in Timber.

Examples:

[query twig_template="template-name.twig"]
[query twig_template="folder/template-name.twig"]
DomainExposuresHeadersLast Checked
i*s*i*u*-*u*r*w*l*e*n*e*r*n*.org (WP 7.0) F 2026-07-07 00:11:05
i*a*e*t*n.com D 2026-07-01 16:26:59
s*l*h*i*a*r*n*.com F 2026-06-02 05:15:14

Top 50 Plugins

Plugin Count
elementor 1,788,177
contact-form-7 1,774,142
elementor-pro 1,059,191
woocommerce 820,641
revslider 616,043
jetpack 461,824
js_composer 425,854
wp-rocket 342,407
essential-addons-for-elementor-lite 268,457
complianz-gdpr 261,912
gravityforms 258,230
google-site-kit 232,230
cookie-law-info 232,214
instagram-feed 227,778
sitepress-multilingual-cms 213,231
header-footer-elementor 210,154
google-analytics-for-wordpress 208,655
bluehost-wordpress-plugin 193,439
elementskit-lite 183,496
gutenberg 167,303
cookie-notice 151,635
litespeed-cache 142,369
gtranslate 126,972
wpforms-lite 126,855
gutenberg-core 124,536
the-events-calendar 123,981
astra-sites 116,028
popup-maker 111,423
woocommerce-payments 111,190
tablepress 102,587
honeypot 98,522
astra-addon 94,988
wp-smushit 92,113
duracelltomi-google-tag-manager 91,398
layerslider 90,662
all-in-one-seo-pack 90,624
coblocks 89,615
bb-plugin 86,714
premium-addons-for-elementor 85,680
akismet 85,643
cleantalk-spam-protect 83,655
ml-slider 83,171
mailchimp-for-wp 83,053
megamenu 81,311
woocommerce-gateway-stripe 80,484
fusion-builder 78,132
jet-engine 77,497
ewww-image-optimizer 77,361
smart-slider-3 77,171
wp-pagenavi 77,150

Top 50 Themes

Theme Count
hello-elementor 625,208
Divi 503,063
astra 420,831
flatsome 136,612
Avada 122,775
generatepress 116,101
pub 86,711
oceanwp 81,911
kadence 79,831
enfold 70,034
salient 65,898
twentyseventeen 54,941
twentytwentyfour 52,846
betheme 52,820
bb-theme 52,758
blocksy 51,552
cocoon-master 50,124
dt-the7 45,925
twentytwentyfive 45,005
h4 43,202
woodmart 40,465
neve 38,711
Avada-Child-Theme 37,283
gox 36,245
bridge 31,926
twentytwentyone 30,708
lightning 30,304
twentytwenty 29,108
swell 28,435
bricks 26,561
Impreza 26,369
Newspaper 24,448
twentytwentythree 22,455
epik-redesign 19,353
twentytwentytwo 19,087
uncode 18,759
twentysixteen 17,770
pro 17,615
sydney 16,777
storefront 16,515
Total 14,616
hello-theme-child-master 14,067
factory-templates-4 13,741
extendable 13,584
themify-ultra 13,104
hestia 12,762
yootheme 12,716
yith-wonder 12,670
porto 12,097
twentynineteen 11,728