该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Insert Code

描述

Insert Code allows you to insert code before or after the contents of your post or page. It also allows you to insert code after Nth paragraph (<p>) of your post or page contents. This saves you the hard work of manually entering code in your post files, and is very useful for showing ads or other content in pages or posts, including AdSense or other ad code.

Insert Code provides an option to show custom code on all pages and posts, or on selected categories only.

Insert Code automatically adds a "Categories" section to Pages of your WordPress dashboard, to allow you to select the category(ies) on which you want to insert the code that you have saved in the Insert Code plugin.

If you want to hide the code from all posts or pages then you can easily uncheck the post type in the Insert Code setting pages.

If you would like to use different codes for desktop and mobile sites, please get our Pro Version

屏幕截图

  • Insert Code saved list screen
  • Screen options to show and hide categories and dates from the list
  • Add new Insert Code screen
  • Insert Code setting page
  • Categories section that appears on the pages in the right sidebar
  • Insert Code Menu on the admin left side bar
  • Sample output on frontend

安装

It’s simple to install and use. After installing go to the settings and configure the plugin as required.

例如:

  1. Upload /insert-code/ to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Go to the Setting of Insert Code
  4. Check the required post type where you want to show custom inserted code or data

常见问题

Can we use the selected post type to show the code

YES, You can place the data/code on pages or posts

Can we use the custom css for the inserted data div

YES, Just place your code or data, and in setting page uncheck the exclude css checkbox and place the css that you want to apply to the code section

Can we select the categories for the pages

YES, Insert Code allows you to select the categories for the pages type also, so you can select the category for that page and allow to insert code from the INSERT Code Plugin by category

Can we place Google AdSense or any other types of ads

YES, You can add any type of ads code to your required pages/posts on your required position in the content

Can we use different codes for mobile and desktop sites?

YES, If you would like to use different codes for desktop and mobile sites, please get our Pro Version

评价

2016年9月3日
Hell, it's open for every writers via dashboard. My site defaultly set users as writers when they register (which is for my public purpose). But it's still a sort of unsafe when they can add codes freely. I just use this fancy thing to add a share code independently. Maybe other plugin would fit my need.
阅读所有4条评价

贡献者及开发者

“Insert Code” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Insert Code”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.2

  • Administrative notice fixed

2.1

  • Capabilities issue fixed

2.0

  • Role and Capabilities added to the plugin. It is now accessible only to the administrator

1.0

  • Plugin developed and launched in the initial phase