• Resolved eddy180

    (@eddy180)


    I have two plugins under my single blogposts:

    First it shows the “Custom About Author” (author information) plugin and underneath that, the “Sociable” plugin (with the social media icons).

    I want to change the order of those plugins, so that “Sociable” displays direct after the blog text…
    Can anyone help me please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Probably can help, do you have a link to both plugins? It’s just to make sure the right ones are looked at.

    Thread Starter eddy180

    (@eddy180)

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s these two plugins.

    https://www.ads-software.com/extend/plugins/custom-about-author/
    https://www.ads-software.com/extend/plugins/sociable/

    The Custom About Author plugin sets it’s add_filter() priority to 0 which bumps it up to the top of the queued up filters.

    That’s just rude. ??

    Rather than editing that plugin, use another plugin which will just remove their filter and re-add it with a priority that puts it after Sociable.

    Create a file in wp-content/plugins called move-custom-about-author.php and copy these lines into that file.

    <?php
    /*
    Plugin Name: Move Custom About Author Down!
    */
    remove_filter( 'the_content', 'caa_append_custom_author_bio', 0 );
    add_filter( 'the_content', 'caa_append_custom_author_bio', 15 );

    The Pastebin link is here https://pastebin.com/mZ6uQmG4

    After you save this new plugin, go to your dashboard and activate it. It’s the one called “Move Custom About Author Down!”

    That will remove the add_filter() that the plugin uses and then re-add a new filter. Giving it a priority of 15 means it will run after Sociable.

    Sociable doesn’t specify the priority, so it gets the default priority of 10 and will run first.

    The result of this is that the Sociable icons display right after the post text followed by the custom about author box.

    Thread Starter eddy180

    (@eddy180)

    You’re a genius!!
    Thnx ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order plugins under blog’ is closed to new replies.