> Query Shortcode wordpress plugin resources analysis

Query Shortcode wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Query Shortcode
Version 0.2.1
Author Hassan Derakhshandeh
Rating 100
Last updated 2013-04-27 02:21:00
Downloads
1250
Download Plugins Speed Test plugin for Wordpress
90Score

Home page

Delta: 0%
89Score

Post page

Delta: 0%
Query Shortcode plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Query Shortcode plugin added 1 kB of resources to the Home page and 1 kB of resources to the sample Post page.

Query Shortcode plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Query Shortcode plugin ads no tables to your Wordpress blog database.

This plugin gives you [query] shortcode which enables you to output posts filtered by specific attributes. You can format the output to your liking and even display the results in a grid of customizable columns and rows. Also supports "lenses" which can turn your query results into Tabs, Accordion, or Carousel widgets. This feature relies on Bootstrap library to be already loaded on the page, the plugin does not include it (for that you can use the Bootstrap plugin). You can create new lenses or override the built-in ones in your theme to customize the output.

Usage

You can use all parameters supported by WP_Query class to filter the posts; you can query for specific post types, categories, tags, authors, etc. You also have to define how you want to format the output:

[query posts_per_page="5" cat="3"] <h3><a href="{URL}">{TITLE} ({COMMENT_COUNT})</a></h3> [/query]

The above shortcode will display the title of the latest 5 posts from the category with the ID of 3. Available keywords are: TITLE, CONTENT, AUTHOR, AUTHOR_URL, DATE, THUMBNAIL, CONTENT, COMMENT_COUNT and more to be added later.

Grid display

With the "cols" parameter you can display the output in a grid. So this:

[query posts_per_page="3" cols="3"] {THUMBNAIL} <h3>{TITLE}</h3> {CONTENT} [/query]

will display the latest 3 posts in the defined template, in 3 columns. If in the above snippet we set the posts_per_page option to 6, it will display the latest 6 posts in two rows that each has 3 columns.

Lenses

With the "lens" parameter you can display the query results in a Tab, Accordion, or Carousel widget. Example:

[query posts_per_page="0" post_type="faq" lens="accordion"]

This will create an accordion widget of all our posts from the "faq" post type. This creates a carousel of latest five featured posts:

[query posts_per_page="5" featured="true" lens="carousel"]

Other supported parameters

Aside from wp_query parameters, the shortcode also supports 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.
Resources added by plugin to Home page/Post page in kB
Created with Raphaël 2.1.00 kB0.25 kB0.5 kB0.75 kB1 kBOtherJavaScriptImagesCSSHTML
Other
Home Page: 0 kB
Post Page: 0 kB
Total size of resources for Home page/Post page in kB
Created with Raphaël 2.1.00 kB125 kB250 kB375 kB500 kBOtherJavaScriptImagesCSSHTML
Other
Home Page: 365 kB
Post Page: 440 kB
Random Theme Tests
Straightforward screenshot

Straightforward

by: mskempster

6437
0%
NewsPress Lite screenshot

NewsPress Lite

by: d5creation

26286
80%