[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.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Published: September 6, 2015 | Last updated: September 14, 2015

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

Information

Component:
  • oik – oik information kit

Recent plugin updates

oik-bwtrace v3.0.0 Use oik-bwtrace v3.0.0 to trace your WordPress server's activity including AJAX, REST and command line. ...
oik-bwtrace v3.0.0-RC2 oik-bwtrace v3.0.0-RC2 includes fixes for many more issues.  ...
oik v3.3.7 

oik v3.3.7 fixes a problem introduced in 3.3.6

 ...
oik-bob-bing-wide v1.32.0 

Update for improvements to the [bw_plug] shortcode… used on blocks.wp-a2z.org

 ...
oik v3.3.6 Upgrade to oik v3.3.6 for improved compatibility with the WordPress Block editor. ...

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

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


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 5.3. PHP: 7.2.20. Memory limit: 768M