How to order plugins below wpmu_singleloop in single.php?

Hi,

Don’t know if I have to post this in the Plugin- or in the Theme section….

But, is it possible to change the order of the used plugins at a single post page? I’m using a renamed copy of the Buddypress Daily theme.

F.e. at link you can see a post and below that are a few plugins in the below order:

– In Post Ads

– JetPack (Share)

– AutoBlog, which generates the source to link to the original source (Called Bron in Dutch)

What I’m trying to achieve is to display the source link right after the post content or imidiately below the post.

Greets,

Age

  • Arun Basil Lal
    • New Recruit

    Hey Age,

    I believe there is a priority order setting that developers can specify for a situation like this. And since you are looking to change only the Source link, I will ask Barry to take a look into this.

    You might have to edit the core plugin file though. Lets see.

  • Barry
    • DEV MAN’s Mascot

    It depends how comfortable you are at editing the code :slight_smile:

    In each plugin you are looking for a line along the lines of:

    add_filter( 'the_content', array(&$this, 'append_original_source'), 999, 1 );

    That is the line in autoblog (see autoblogincludes/classes/autoblogprocess.php line 61).

    The third parameter (999) is the order number, so 999 is there to attempt to get the autoblog code run last when a posts content is processed. If there isn’t a third parameter in some of the other plugins, then it is using the default value of 10 – you can add a third parameter to any value you want.

    The lower the value the earlier it is run, the higher the later. So if you want autoblog in there first, then change 999 to a value less than 10 (or just to 1 to be sure).

    By changing the values in the plugins you should be able to order things as you want.