Last month a customer noted that the output of my Do-It-Yourself shortcodes plugin was interspersed with the share buttons from Add-To-Any. I reproduced the problem. I also discovered some strange behaviour with Jetpack. Today, while testing my fix I discovered another problem… Jetpack Related Posts attaches itself to the first invocation of ‘the_content’ filter.
Problem with DIY-oik v1.3
Here we have two DIY shortcodes. The first creates a link to oik-plugins.com, the other creates a link to oik-plugins.co.uk
This is how the loikp shortcode is coded.
[bw_link oik-plugins.com title="oik-plugins - the home of lazy smart shortcodes" text="oik-plugins"]
When these DIY shortcodes are used in a post then we can get unexpected results with Add-To-Any, Jetpack Sharing and Jetpack Related Posts.
Share this:buttons are also expected to appear below the content
- The Related Posts section is supposed to appear at the end of the post!
- Add-To-Any’s sharing links are also expected to appear only once
Actual – unexpected results
With DIY-oik v1.3
- The Related section appears after the first DIY shortcode
- Add-To-Any links appear after each DIY shortcode
Share this:links are missing