[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog
  • #
  • &
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • [

Testing compatibility with Shortcake v0.5.0

In this post I summarise some of the problems I’ve noted while testing the compatibility of oik with the Shortcake plugin, shortcode-ui v0.5.0. This post has been updated to reference any Issues raised on GitHub.
  • Needed to disable expansion of some shortcodes
    • Those accepting positional parameters: e.g. [bw_link] fusioneng/shortcake#128
    • Those which generate jQuery / JavaScript: e.g. [bw_cycle], [nivo]. I probably need to understand the solution in fusioneng/shortcake#394 and fusioneng/shortcake#39?
    • Those which generate content not suitable for formatting in the WYSIWYG editor: e.g. [bw_codes]
  • This leads to unwanted embedded shortcode expansion if the containing shortcode is disabled. e.g. [bw_geshi] fusioneng/shortcake#414
  • Nested shortcodes are not loaded into Inner_content. A known limitation? fusioneng/shortcake#129
  • Switching from Text to Visual introduces unwanted breaks and   tags fusioneng/shortcake#317
  • Switching from Text to Visual introduces unwanted   tags fusioneng/shortcake#457
  • Checkbox fields for y/n values are not handled as I’d have hoped. fusioneng/shortcake#359
  • It’s very difficult working with shortcodes that don’t appear to expand to anything. fusioneng/shortcake#303
  • Question: Is the Word count intended to count the words from the expanded shortcodes?
  • The search facility misses out some matches. e.g. [bw_field], [bw_fields] fusioneng/shortcake#458
To overcome some of these problems
  • I’ve written some new code for the oik base plugin: bw_sc_shortcake_compatible()
  • I’ve added a field to the definition of the oik_shortcodes post type, which is where I keep a catalog of shortcodes.
  • But as I’ve not yet created this as a Virtual field, and haven’t completed the analysis, the value displayed will currently default to No.
  • I’m currently working with over 200 shortcodes. I don’t yet know how many I feel happy to tell shortcode-ui about.

The bottom line is…

With the shortcode-ui active, I daren’t use the Visual editor for most of what I do.
Here’s a short video demonstrating the differences between the UI and some of the quirky behaviour that led me to this conclusion. It goes a bit quiet in the middle as I failed to add a commentary. You should be able to see the problems I encountered.

On the plus side

I have discovered that my own add shortcode button works the same as Add Media > Insert Post Element. So that’s a bonus for users who don’t use the complex shortcodes that I write.

Published: September 6, 2015 | Last updated: December 4, 2020

Filed Under: oik Tagged With: compatibility, Shortcake, shortcode-ui

Information

Component:
  • oik – oik information kit

Recent plugin updates

oik-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: oikplug@oik-plugins.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2025. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins

WordPress version: 6.8.3

Gutenberg version: 21.7.0

PHP version: 8.2.29