描述
Areas of the page where you can insert code:
- Header (between ‘head’ tags)
- Footer (bottom of the page)
- Before page content (before main WP loop)
- After page content (after main WP loop)
- Before post content
- After post excerpt (after ‘more’ tag)
- After post content
- Manual. Place function, which displays code, directly in your theme file(s)
Widget
. Allows you to create custom widgetsShortcode
. Allows you to create custom shortcodes. Since version 2.3.0 added ability to insert shortcodes in comments
Display filters:
- Insert on pages – here you can select pages where you code CAN BE shown.
- Exclude pages – pages where you code CAN NOT be shown.
- Hide from user – allows to hide code from specified user groups/roles.
Page selectors:
Custom taxonomy
pages are available since version 2.0.0.Custom Post Type
pages – version 2.0.0Post formats
– version 2.1.0.Custom Post Type Archive
pages – version 2.2.0
Other options:
- Priority number – determines display order of the Inserts placed in the same location.
- Align – allows you to set horizontal align for inserted code. Useful for aligning Google AdSense blocks.
安装
- Check minimal system requirements: WordPress 3.1, PHP 5.5
- Follow standard WordPress plugin installation procedure
- Activate the plugin through the Plugins menu in WordPress
评价
2021年2月25日
It doesn't work, and even worse, now it won't let me delete it, it throws an error.
2019年1月3日
1 回复
Can you please tell me how to get the Code Insert Manager (Q2W3 Inc Manager) to work again? I used it with many sites over the years. I updated the plugin yesterday on just 2 of my sites and it is not working now at all. Just white page. I followed the instructions to just choose the pages instead of select ALL PAGES but still no luck. Also on one of the sites it is not even showing any of the pages to "include". Just has these as options to choose from:
All
Front Page
All Post Types Pages
Taxonomies pages
Post Type Archive Pages
Date Pages
Author Pages
Attachment Pages
Paged Pages
Search Page
Preview Page
Page 404
All Posts
Archive: Posts
All Pages
All Categories
All Tags
So I cannot choose the pages that I have made (over 2,000 of them in this database) to be able to get the code insert plugin to cover. Please help.
2018年1月15日
It does what it should.
2017年8月11日
Found this plugin more useful than some of the others doing the same job.
Simple to understand and effective.
2017年3月18日
Thanks for this great plugin. Should be standard on WP.
Greets,
Patrick.
-
http://ntown.at
2016年10月1日
I've used this for a few years now but only recently realized how much I've underutilized what all it can really do! You can basically create chunks of code (even shortcodes) and choose which page and where you want it to automatically go. I hope I can use this for many more years to come.
贡献者及开发者
更新日志
=2.5.3=
* Added wp_block
post type to restricted post types
2.5.2
- Fixed error in display_inc() function
2.5.1
- Updated plugin core, fixed most php warnings and notices
- Added support of PHP7
- Added standard plugin uninstall script
- Added feature to make head and footer inserts from the post editor
- Removed option to use [include] shortcode in comments
- Disabled PHP eval by default! To enable PHP eval add
define('Q2W3_PHP_EVAL', true);
in wp_config.php. Use with caution! In multiuser or multisite enviroments you can grant PHP exec rights for non admin users!!!
2.3.3
2.3.2
- ZeroClipboard updated to version 1.1.7. This version fixes vulnerability described here.
2.3.1
2.3.0
- Added ability to insert shortcodes in comments. Option must be enabled in Code Insert Manager -> Settings page
2.2.0
- Added support for Custom Post Type Archive pages
- Fixed small bug with Opera multiple select
2.1.3
- Added Italian translation
2.1.2
- Fixed conflict with Find and replace plugin
2.1.1
- Added German translation
2.1.0
Post Formats
are now available for page filters- To admin page added search form and capability to filter table by status (Active/Disabled)
2.0.1
- Plugin renamed to
Code Insert Manager
- Added support for
custom post types
(support for each post type must be enabled on plugin settings page) - Added support for
custom taxonomies
(support for each taxonomy must be enabled on plugin settings page) - Added new insert location –
After post excerpt
Hide from admin
option is upgraded toHide from user
. Now you can specify any user group, not only Administrator. Plus there is one virtual user group – visitor (for not logged in users).- Admin menu entry moved to top level.
1.3.1
- Added French translation.
1.3.0
- Added new insert location – shortcode.
1.2.4
- Fixed php evaluation error in Manual include mode.
- Plugin was successfully tested in WordPress 3.0
1.2.3
- Improved page detection on themes with modified loop.
1.2.2
- Fixed high memory usage on blogs with large number of posts/categories (more than 1000).
1.2.1
- Fixed broken links when WordPress installed in subdirectory.
1.2.0
- Now the plugin is WordPress MU compatible (requires WP MU 2.8.1 or higher).
1.1.0
- New. PHP code insertions now supported.
- New. Align option added.
1.0.1
- Fixed ‘Create New’ button malfunction in Opera and Firefox.
- Fixed
Parse error: syntax error, unexpected T_PROTECTED
in some environments.
1.0
- First public release.