Forum Replies Created

Viewing 1 replies (of 1 total)
  • This is caused by themes treating code inserted by other plugins as legit post content, so whenever your blog tries to display content, code gets displayed with it, especially if the code is added to the beginning of the content. In the EvoLve theme, for example, the following code shows exactly that:

    <?php if ( get_the_content() ) { ?> &mdash; <small style="font-style:italic;"><?php $postexcerpt = get_the_content();
    $postexcerpt = apply_filters('the_content', $postexcerpt);
    $postexcerpt = str_replace(']]>', ']]>', $postexcerpt);
    $postexcerpt = strip_tags($postexcerpt);
    $postexcerpt = strip_shortcodes($postexcerpt);
    
    echo truncate($postexcerpt, 60, '...');
     ?></small> <?php } ?>

    postexcerpt contains the “ShareTweet(function() { var s = document.createElement(‘S …”, which is the code generated from my “Social Media Counters” plugin, which I’ve set to be shown both at the top and bottom of my posts. The question is which of these should work to resolve the issue, the theme folks or the plugin folks … or both?

Viewing 1 replies (of 1 total)