WP Manifestindependent plugin directory
manifest / content / simple-query-shortcodes

Simple Query Shortcodes

A plugin to register flexible shortcodes

by Jon Schroeder · github.com/jonschr/simple-query-shortcodes · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jonschr/simple-query-shortcodes/archive/refs/heads/master.zip

Declares an update source (https://github.com/jonschr/simple-query-shortcodes), so updates arrive through the plugin's own updater.

From the readme

Simple Query Shortcodes This loop plugin has one piece of functionality I've found to be missing in most of the commercial plugins that do similar things: it allows for custom layouts to be registered by themes or plugins, then assigned to a loop pulling in a particular subset of posts. Table of contents Registering a layout Sample shortcodes Blog posts Pull in a specific post Custom post types Custom taxonomies View all parameters Registering a layout And here's the killer functionality. You can attach these loops to a layout you register in a theme or plugin. Then use it like so: This set of instructions are for theme and plugin authors. If you'd like to add a layout, this is the code to copy and paste. There are two functions in here – the first for adding things before the loop starts (scripts and styles, usually), and the second for setting up the markup within each post in the loop. (The first one is commented out because for simple use cases it won't be needed). Usually I add all of the styles in the theme or plugin that's registering the layout to avoid loading unnecessary files. Please note: correct usage would be to register the script elsewhere and to

Read the full README on GitHub →