• DIY-oik v1.4 fixes problems with Add-To-Any and Jetpack Related Posts

    DIY-oik v1.4 fixes problems with Add-To-Any and Jetpack Related Posts

    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

    [loikp]
    [loikuk]

    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.

    oik-plugins
    oik-plugins.co.uk

    Expected results

    • Jetpack’s 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
    • Jetpack’s Share this: links are missing

    See also



    Published:

    Last updated:

    January 13, 2015

Categories

Tide times from tidetimes.org.uk

Tide Times & Heights for Langstone Harbour on
17th May 2022
00:48 High Tide ( 5.09m )
06:07 Low Tide ( 0.61m )
13:12 High Tide ( 5.01m )
18:27 Low Tide ( 0.68m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
17th May 2022
00:50 High Tide ( 4.94m )
06:05 Low Tide ( 0.14m )
13:20 High Tide ( 4.83m )
18:26 Low Tide ( 0.35m )