Insert Blocks Before or After Posts Content

January 14, 2024

Insert Blocks Before or After Posts Content Plugin

Automatically insert blocks of content before and/or after each posts/page 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. These two plugins are totaly independant, but together they provide a full editorial experience! ⭐️

Installation

  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 🙂

Screenshots

  1. Plugin’s settings page

    Plugin’s settings page

  2. Use block editor to edit your before/after content, even if you have Classic Editor installed!

    Use block editor to edit your before/after content, even if you have Classic Editor installed!

  3. Use the post metabox to edit your settings on a post by post basis (works on both Classic and Gutenberg editors)

    Use the post metabox to edit your settings on a post by post basis (works on both Classic and Gutenberg editors)

  4. Front-end result with both before and after content

    Front-end result with both before and after content

FAQ

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.

Changelog

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.

Details

  • Version: 0.3
  • Active installations: 1,000
  • WordPress Version: 5.3
  • Tested up to: 6.4.5
  • PHP Version: 5.6

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars