[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-themes v1.4.0 

Update to oik-themes v1.4.0 to support Full Site Editing (FSE) themes. FSE themes, which are currently experimental, deliver block based templates and template parts.

 ...
oik-clone v2.0.1 oik-clone v2.0.1 contains a fix for a 500 internal server error being produced when cloning content with certain taxonomy terms. ...
SB Chart block v0.1.1 

Update to SB Chart block v0.1.1 for improved enqueing of the chart.js Javascript and better colours in the Gutenberg palette.

 ...
Slog v1.3.1 

Update to Slog v1.3.1 for a new Driver tab and improved display of charts grouping Elapsed times.

 ...
SB-Chart-Block v0.0.8 SB-Chart-Block v0.0.8, a WordPress single block plugin, supports 4 different chart types; Line, Bar, Horizontal bar and Pie. ...

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


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