
The Vizou Quickloop plugin allows adding posts to any post or page via a shortcode with multiple parameters. I frequently design one-page-style sites where most of the info appears on the home page as you scroll down. My approach involves a template for a parent page custom with multiple child pages that are automatically added to the home page by my clients. This plugin was my way of simplifying the addition of specific post content to each child page (news, calendar listings, videos…), in a way that my clients could easily use it and modify the number of posts, order and other parameters.
Installation
Download the plugin here, then upload the zipped plugin files to wp-content/plugins, or upload it directly via the WordPress plugins screen, then activate it.
Features
There are currently no settings for this plugin.
- Get and display posts inside a page – for example, add news posts following an intro on the home page
- Use a variety of query parameters in a shortcode – p, cat, posts_per_page, menu_order, order, offset
- Add a custom class to your query
- Web devs (experienced or aspiring) can override the default layout via a theme template
- Use the shortcode on any page wherever you want to posts to appear (it will work on posts, too)
How to use the shortcode
In any page, wherever you’d like to have posts appear, use the shortcode [vizou-quickloop]
with post query parameters as in the examples below.
Get 2 posts from category 2 and order them ascending by menu order
[vizou-quickloop cat="2" posts_per_page="2" orderby="menu_order" order="asc"]
The Vizou Quickloop plugin allows adding posts to any post or page via a shortcode with multiple parameters.
Vizou Quickloop plugin features.
Get a single post
[vizou-quickloop p="35"]
Download the latest version of Vizou Quickloop.
Get posts by tag
[vizou-quickloop tag="plugins"]
Get 5 posts from category 2 and skip the first one
[vizou-quickloop cat="2" posts_per_page="5" offset="1"]
Add a custom class to the container and its posts
[vizou-quickloop cat="9" posts_per_page="1" class="featured"]
Customize the default layout
To override and customize the default layout, open the plugin file vizou-quickloop.php and copy and paste the section marked START LAYOUT
to END LAYOUT
into a document called vizou-quickloop-template.php in your theme’s root. Upload that file to your theme.
Latest version
Download the latest version right here.
Download version 1.0.5
On Github
Coming soon!
Changelog
Version 1.0.5
- Changed shortcode to
[vizou-quickloop]
(with backwards compatibility)
Version 1.0.4
- Added shortcode parameter for custom class
[[quickloop class="your-custom-class"]]
Version 1.0.0
- Converted a shortcode function into a small plugin