Support » Plugin: WP-Activity » Shortcode content duplicated because of Jetpack

  • The new Jetpack functionality that uses opengraph (sharing plugins) are calling get_the_excerpt() which, in turn, calls the_content. This appears to duplicate shortcode content.

    I was able to work around this using this code on line 445 of wp-activity.php:
    if ( in_the_loop() ) {
    return act_stream_common($attr[‘number’], $attr[‘title’], true, ”);
    } else {
    return null;
    }

    It appears to be a Jetpack issue and is hopefully temporary. Just thought I’d share this for anyone else experiencing duplicated content.

    Related issue where I found reference material is here (Thank you Mike Little):
    http://wordpress.org/support/topic/duplicate-entries-on-wp-35

    http://wordpress.org/extend/plugins/wp-activity/

  • The topic ‘Shortcode content duplicated because of Jetpack’ is closed to new replies.