Widget Interlacer

      Geen reacties op Widget Interlacer


Interlace widget content with the main post content. You can add a sign-up form, or a JavaScript snippet if you want to. It could easily be customized to add virtually any other piece of content that can go into a widget.


Once the plugin is activated it will create a sidebar in AppearanceWidgets. Any widget that you place in that sidebar will get displayed within the post content. You specify what HTML element the widget content shall appear after.

For example, if you know that you have three p tags in your post and you want an advertisement to appear after the second p tag, then on that post you can set the widget to display after a ‘p’ and after 2 elements.


  1. Sample configurations on the WordPress Widget area

    Sample configurations on the WordPress Widget area

  2. View of the Post editor without any interlaced content, because authors don't have to add it!

    View of the Post editor without any interlaced content, because authors don’t have to add it!

  3. Interlaced widget content strongin/strong the post content!

    Interlaced widget content in the post content!


Can I add a form to this area?

Yes, forms interlaced within post content are a great way to engage users.

Can I interlace PHP?

No. Adding PHP to widgets has a whole set of factors to deal with. I don’t want to support something like that with this plugin, but there are ways for you to do it.

I can’t see my widget content

You may have set the number of elements too high. For simplicity’s sake, I assume that this will be used for heavily structured content. You will have to know exactly what element it will be injected after. i.e., you probably shouldn’t rely on this to interlace widget content with post content.

It is possible to tell WordPress to display this widget beyond the number of elements that actually appear on the page, hence the widget would never get displayed at all.

Where do I style this widget content?

I purposely kept as much of my styles out of this. Each widget should inherit as many styles as possible but your regular styles don’t target these elements. To do that, you’ll have to edit your own theme’s stylesheet.


This section describes how to install the plugin and get it working.


  1. Upload widget-interlacer.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress



  • Initial Release