Skip to content

A plugin for WordPress that facilitates injecting an array of posts into a WP query object as if queried. Particularly useful to allow use of standard template tags.

License

Notifications You must be signed in to change notification settings

coffee2code/inject-query-posts

Repository files navigation

Inject Query Posts

A plugin for WordPress that facilitates injecting an array of posts into a WP query object as if queried. Particularly useful to allow use of standard template tags.

This plugin is available in the WordPress Plugin Directory: https://wordpress.org/plugins/inject-query-posts/

Installation

  1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  2. Activate the plugin through the 'Plugins' admin menu in WordPress
  3. Use the c2c_inject_query_posts() function to inject an array of posts into a WP query object. Specify the posts array as the first argument. Configure the query object by passing an array as the second argument. If specifying a WP query object, pass it as the third object; if not specified then the global wp_query object will be assumed.

Additional Documentation

  • See readme.txt for additional usage information.
  • See DEVELOPER-DOCS.md for developer-related documentation on hooks and template tags.
  • See CHANGELOG.md for the list of changes for each release.

Support

Commercial support and custom development are not presently available. You can raise an issue on GitHub or post in the plugin's support forum on WordPress.org.

If the plugin has been of benefit to you, how about submitting a review for it in the WordPress Plugin Directory or considering a donation?

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

About

A plugin for WordPress that facilitates injecting an array of posts into a WP query object as if queried. Particularly useful to allow use of standard template tags.

Resources

License

Stars

Watchers

Forks

Packages