Title: Insert Blocks Before or After Posts Content
Author: Jb Audras
Published: <strong>2019 年 12 月 3 日</strong>
Last modified: 2025 年 11 月 27 日

---

搜索插件

![](https://ps.w.org/insert-blocks-before-or-after-posts-content/assets/banner-772x250.
png?rev=2205947)

![](https://ps.w.org/insert-blocks-before-or-after-posts-content/assets/icon-256x256.
png?rev=2205947)

# Insert Blocks Before or After Posts Content

 作者：[Jb Audras](https://profiles.wordpress.org/audrasjb/)

[下载](https://downloads.wordpress.org/plugin/insert-blocks-before-or-after-posts-content.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/#description)
 * [评价](https://cn.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/#developers)

 [支持](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/)

## 描述

**This plugin gives the capability to automatically add content before and/or after
your posts, pages, or any public custom post types.**

It is also possible to prevent your before/after content from showing on a post 
or a page directly from the editor screen (works on both Classic Editor and Block
Editor). You can also prevent your before/after content from displaying on specific
post types or categories.

With this plugin, **build your before/after content within the Gutenberg block editor,
even if you are using Classic Editor!**

Indeed, the block editor is activated for these specific blocks of contents even
if Gutenberg is not activated on your website!

I strongly recommend to use it alongside one of my other free plugins, [Reusable Blocks Extended](https://wordpress.org/plugins/reusable-blocks-extended/).
These two plugins are totaly independant, but together they provide a full editorial
experience! ⭐️

## 屏幕截图

 * [[
 * Plugin’s settings page
 * [[
 * Use block editor to edit your before/after content, even if you have Classic 
   Editor installed!
 * [[
 * Use the post metabox to edit your settings on a post by post basis (works on 
   both Classic and Gutenberg editors)
 * [[
 * Front-end result with both before and after content

## 安装

 1. Activate the plugin.
 2. Go to `Appearance > Before/after content` to create content blocks and to choose
    your settings.
 3. Save your changes and enjoy 🙂

## 常见问题

### But I’m still using Classic Editor!

No worries! It will work even with Classic Editor activated!
 The plugin restores
Gutenberg block editor for the `wp_block` post type only. Of course, nothing will
change for your other post types.

## 评价

![](https://secure.gravatar.com/avatar/f3e18b4c71f5666b4aed15bf0c626183025b86ce95885cf1258c09b29875af00?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work with AddToAny plugin](https://wordpress.org/support/topic/doesnt-work-with-addtoany-plugin/)󠁿

 [ajachocki](https://profiles.wordpress.org/ajachocki/) 2024 年 1 月 17 日

It seems that this plugin doesn’t register its content (template type) well. And
because of that it doesn’t work with AddToAny plugin.

![](https://secure.gravatar.com/avatar/9786181f2ac82df1c2b05de1899533eadab7a16b5e6f7462d0c11f6abe6af6bd?
s=60&d=retro&r=g)

### 󠀁[Very handy](https://wordpress.org/support/topic/very-handy-261/)󠁿

 [Li-An](https://profiles.wordpress.org/li-an/) 2022 年 3 月 29 日

The Blocksy theme gives the opportunity to customize some features before and after
the content but prevent you to choose the order of eventual additional content you
may try to add in these places. This plugin is pretty cool as you can add all the
blocks you need in the order and composition you need.

![](https://secure.gravatar.com/avatar/1d69aeb082fdece67522c9602e4ceda5e53c9a405f32bb6329b2c505bbc47b2e?
s=60&d=retro&r=g)

### 󠀁[Polylang Support](https://wordpress.org/support/topic/polylang-support-32/)󠁿

 [Graydon Schwartz](https://profiles.wordpress.org/graydonschwartz/) 2021 年 5 月
22 日

Great plugin! Would it be possible to add Polylang support? Multiple languages show
up but don’t apply on page. Thank you for your consideration! 🙂

![](https://secure.gravatar.com/avatar/a82598fb404f7b4c6f30f3a6fe5a8066da5783c4fc27ec0f505716414475ceb7?
s=60&d=retro&r=g)

### 󠀁[Very good plugin ! And free more…](https://wordpress.org/support/topic/very-good-plugin-and-free-more/)󠁿

 [Millenium5454](https://profiles.wordpress.org/millenium5454/) 2021 年 3 月 19 
日

Thanks a lot ! Plugin good quality and very good function. Fred.

![](https://secure.gravatar.com/avatar/0823d8baee66d0a1548e9a5ce3876e3c963261bf3a45f048f076930cf51efe55?
s=60&d=retro&r=g)

### 󠀁[A Good, Clean Solution](https://wordpress.org/support/topic/a-good-clean-solution/)󠁿

 [acrodillo](https://profiles.wordpress.org/litfod/) 2020 年 5 月 11 日

This plugin is very straightforward and allows you to design before & after sections
for your posts and pages. I have used it to provide an article feedback section 
that would otherwise have been a compromise to pull off. The settings page is nicely
placed in the Appearance section. All good :o)

![](https://secure.gravatar.com/avatar/e424d8ea22daed867778b7703f0dda7f6ddd07a0069145eedf3c47b94bba0eff?
s=60&d=retro&r=g)

### 󠀁[Exactly what I needed](https://wordpress.org/support/topic/exactly-what-i-needed-658/)󠁿

 [Amy](https://profiles.wordpress.org/synthea/) 2020 年 2 月 18 日

I tried a function to add affiliate/privacy info to blog posts only, but it was 
showing on my product pages, where I didn’t want. This allowed me to select blog
posts only, and leave the info off pages and products. Perfect! Thank you for the
easy to use plugin!

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/)

## 贡献者及开发者

「Insert Blocks Before or After Posts Content」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Jb Audras ](https://profiles.wordpress.org/audrasjb/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)
 *   [ Maxime Pertici ](https://profiles.wordpress.org/maxpertici/)

「Insert Blocks Before or After Posts Content」插件已被翻译至 2 种本地化语言。 感谢
[所有译者](https://translate.wordpress.org/projects/wp-plugins/insert-blocks-before-or-after-posts-content/contributors)
为本插件所做的贡献。

[帮助将「Insert Blocks Before or After Posts Content」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/insert-blocks-before-or-after-posts-content)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/insert-blocks-before-or-after-posts-content/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/insert-blocks-before-or-after-posts-content/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/insert-blocks-before-or-after-posts-content/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/insert-blocks-before-or-after-posts-content/)。

## 更新日志

#### 0.3

 * Properly parse block. Props @maxpertici and @vinvinXD. See https://twitter.com/
   vinvinXD/status/1496927854885539851 for context.

#### 0.2.1

 * Fixes a PHP warning on front-end. Props Aurélien Denis (@maigret).

#### 0.2

 * Internationalization fixes and WP 5.6 compatibility.

#### 0.1

 * Plugin initial version. Works fine.

## 额外信息

 *  版本 **0.3**
 *  最后更新：**6 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/)、
   [English (US)](https://wordpress.org/plugins/insert-blocks-before-or-after-posts-content/)
   和 [French (France)](https://fr.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/insert-blocks-before-or-after-posts-content)
 * 标签
 * [after](https://cn.wordpress.org/plugins/tags/after/)[before](https://cn.wordpress.org/plugins/tags/before/)
   [block](https://cn.wordpress.org/plugins/tags/block/)[content](https://cn.wordpress.org/plugins/tags/content/)
   [insert](https://cn.wordpress.org/plugins/tags/insert/)
 *  [高级视图](https://cn.wordpress.org/plugins/insert-blocks-before-or-after-posts-content/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/reviews/)

## 贡献者

 *   [ Jb Audras ](https://profiles.wordpress.org/audrasjb/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)
 *   [ Maxime Pertici ](https://profiles.wordpress.org/maxpertici/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/insert-blocks-before-or-after-posts-content/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/audrasjb)