I’d like to announce the official release of the updated Inject Query Posts plugin (v2.0) for WordPress.
Inject an array of posts into a WP query object as if queried, particularly useful to allow use of standard template tags.
Recommended major update! Highlights: now use global WP_Query object by default; added ability to preserve state of existing query object; misc non-functionality changes; expanded readme.txt text; verified WP 3.0 compatibility.
The plugin’s official homepage is located at :
coffee2code.com/wp-plugins/inject-query-posts/.
Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.
Read more for a detailed ChangeLog of the release.
Detailed ChangeLog
These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.
- If no query_obj is sent, use the global $wp_query object (previously used to create a new query object)
- If a not-false, non-object value is sent as $wp_query object (namely any non-empty string or non-zero integer), then create a new WP_Query object for use
- Add ability to preserve the state of the existing query_obj
- * Add $preserve_query_obj arg (optional) to inject_query_posts(), default to true
- * Add filter ‘inject_query_posts_preserve_query_obj’ that gets passed value of $preserve_query_obj
- Reset more query_obj settings
- Wrap function in if(!function_exists()) check
- Remove docs from top of plugin file (all that and more are in readme.txt)
- Minor code reformatting (spacing)
- Add PHPDoc documentation
- Note compatibility with WP 2.8+, 2.9+, 3.0+
- Update copyright date
- Add package info to top of plugin file
- Add Changelog, Filters, Template Tags, and Upgrade Notice sections to readme.txt
- Remove trailing whitespace
- Add to plugin repo
2 replies on “Inject Query Posts v2.0”
Hi I didn’t know where to post this. I have followed directions and installed reveal-template plugin in wordpress but when i try to activate it I get this
Fatal error: Class ‘C2C_Plugin_016’ not found in /Applications/MAMP/htdocs/dar/wp-content/plugins/reveal-template/reveal-template.php on line 43
any idea what I’m doing wrong? It is in the right folder structure.
Thanks
Debi
Hi Debi, the plugin’s homepage is at coffee2code.com/wp-plugins/reveal-template. But you are right that I neglected to provided an updated version of a file when I made the latest release. I’ve updated the plugin to v2.0.2, which should fix your issue once it becomes available. Thanks for reporting the bug!