[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 v4.7.2 oik v4.7.2 includes a fix to the logic to render blocks for Content and Excerpts in the bw_pages shortcode. ...
oik v4.7.1 Upgrade to oik v4.7.1 for bw_pages rendering blocks for Content and Excerpts, and support for post_name attribute for shortcode which query posts ...
oik-shortcodes v1.41.1 Upgrade to oik-shortcodes v1.41.1 for a couple of minor changes. ...
oik-bob-bing-wide v2.2.2 Upgrade to oik-bob-bing-wide v2.2.2 for improvements to bw_dash examples and fixes to some SVG icon's visibility. ...
oik-bwtrace v3.3.1 Upgrade to oik-bwtrace v3.3.1 to measure plugin load times and ad hoc action timing points. ...

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: [email protected]

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-2022. All rights reserved.


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