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

Plugin: custom-query-shortcode (Used by 5 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
s*l*h*i*a*r*n*.com F 2026-06-02 05:15:14
i*s*i*u*-*u*r*w*l*e*n*e*r*n*.org (WP 6.9.4) F 2026-05-10 00:49:50
p*y.b*l*e*t.e*u.tr (WP 6.8.3) F 2026-05-07 13:39:14
i*a*e*t*n.com D 2026-05-04 00:20:45
i*m*i*e*.com (WP 6.9.4) F 2026-05-03 14:01:52

Top 50 Plugins

Plugin Count
elementor 1,766,583
contact-form-7 1,736,702
elementor-pro 1,030,388
woocommerce 803,333
revslider 607,450
jetpack 461,018
js_composer 424,732
wp-rocket 327,554
essential-addons-for-elementor-lite 286,325
gravityforms 259,067
complianz-gdpr 250,219
cookie-law-info 226,045
instagram-feed 224,199
google-site-kit 218,006
sitepress-multilingual-cms 216,947
google-analytics-for-wordpress 210,764
header-footer-elementor 206,634
elementskit-lite 201,469
bluehost-wordpress-plugin 189,881
gutenberg 160,110
gutenberg-core 154,721
cookie-notice 147,268
the-events-calendar 128,378
wpforms-lite 127,890
litespeed-cache 127,070
gtranslate 125,420
astra-sites 118,230
popup-maker 113,972
woocommerce-payments 111,546
tablepress 105,939
coblocks 97,022
honeypot 95,169
astra-addon 93,752
wp-smushit 91,909
all-in-one-seo-pack 91,778
duracelltomi-google-tag-manager 91,632
LayerSlider 90,149
bb-plugin 89,625
premium-addons-for-elementor 85,409
akismet 84,953
megamenu 84,596
cleantalk-spam-protect 82,772
mailchimp-for-wp 82,379
woocommerce-gateway-stripe 81,764
ml-slider 79,286
fusion-builder 78,250
ewww-image-optimizer 77,680
borlabs-cookie 77,422
formidable 76,933
wp-pagenavi 76,878

Top 50 Themes

Theme Count
hello-elementor 603,604
Divi 502,206
astra 416,983
flatsome 127,710
Avada 122,233
generatepress 117,510
pub 106,821
oceanwp 81,941
kadence 76,729
enfold 70,467
salient 65,686
twentyseventeen 55,072
h4 54,673
bb-theme 54,547
twentytwentyfour 53,163
cocoon-master 51,785
betheme 50,896
blocksy 49,555
dt-the7 45,198
twentytwentyfive 42,865
neve 38,534
Avada-Child-Theme 36,987
gox 33,012
woodmart 32,685
bridge 32,382
twentytwentyone 31,653
lightning 30,899
twentytwenty 29,513
swell 28,320
Impreza 25,821
bricks 25,500
twentytwentythree 23,678
Newspaper 22,902
sydney 20,205
voxel 19,933
twentytwentytwo 19,792
epik-redesign 19,262
uncode 18,736
twentysixteen 17,844
pro 17,654
storefront 17,571
kubio 15,398
Total 14,462
extendable 14,436
yith-wonder 13,979
sinatra 13,576
hello-theme-child-master 13,089
factory-templates-4 12,819
themify-ultra 12,766
yootheme 12,657