WordPress.org

Ready to get started?Download WordPress

Forums

AA's Digg Digg Alternative
[resolved] Causes META tags to go into (5 posts)

  1. Chris Greten
    Member
    Posted 1 year ago #

    I'm using your great plugin, but found that it caused my META tags to go into the <BODY> instead of the <HEAD>, where they belong.

    After changing your code from

    add_action('wp_head', 'moki_add_social_content');

    to

    add_action('loop_start','moki_add_social_content');

    all my <META> tags are in the right spot again.

    You might want to fix this in the next version...

    http://wordpress.org/extend/plugins/aas-digg-digg-alternative/

  2. Chris Greten
    Member
    Posted 1 year ago #

    Update: Some themes execute the loop multiple times, so I added a global variable to check, if the loop had been executed already:

    global $dyksb_loaded;
    if ( $dyksb_loaded == 1 ) return;
    $dyksb_loaded = 1;

    Also please note that the position of the floating bar is now relative to the <DIV> where the loop is executed.

    Unfortunately, there is no hook to place code straight after the <BODY> tag...

  3. Brandon_Orndorff
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you, I will be sure to add this to the next update.

  4. RedNasiL
    Member
    Posted 11 months ago #

    Thanks for this post, I was breaking my head for about a week with this. Deactivated the plugin and everything works again.

  5. Sherwin Techico
    Member
    Posted 11 months ago #

    Thanks for the heads up. Was about to use this plugin. Will be putting this hotfix for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic