• Resolved makphisto

    (@makphisto)


    Hello,
    I’ve inherited a WordPress website, and I’m not terribly versed with WordPress (but I’m getting there!).

    The site is here. If you look at the column on the right called “Featured Media”, you will see our Javascript scroll. You’ll also notice that some of the characters are wacky. Apparently, something happened before my involvement that turned some of the beginning and end quotes into misc code. I’ve cleaned up all the posts and pages, but I can’t find where these specific entries are located. Here’s what I know based on the custom theme’s page.php:
    – The javascript is part of the jQuery library.
    – The code in question is:

    <div class="hgb_content_right">
    <b>Featured Media</b>
    <br />
    <br />
    <div class="hgb_news_item">
    <?php
    $myposts = get_posts('numberposts=-1&category=1');
    foreach($myposts as $post) :
    setup_postdata($post);
    ?>
    <div>
    <span class="hgb_news_excerpt">
    <?php the_excerpt(); ?>
    </span>
    <span class="hgb_news_link">
    <?php the_content();?>
    </span>
    </div>

    But when I go to the individual posts that I would expect to be “serving” the text, there is NO offending code. In fact, the only content to the post is the name of the publication and link to the publication. If that makes any sense. EG, here is the code to the scroll for the New York Times bit:
    The New York Times -- <a href="http://www.thehowardgbuffettfoundation.org/wp-content/uploads/2010/04/New-York-Times-From-U.S.-to-Africa-With-a-Fortune-and-a-Tractor-Howard-G-Buffett-Foundation.pdf" target="_blank"><em>From the U.S. to Africa, With a Fortune and a Tractor</em></a>

    So, how do I find where that code is coming from so that I can clean it up?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you check the settings for the plugin in question? Maybe the text is input in there?

    Thread Starter makphisto

    (@makphisto)

    It’s not a Plugin per sey. The original designer added the jQuery javascript library on the server and uses the code to call the function, but it’s ONLY so that the post snippets will rotate. Has nothing to do with the content from what I can tell.

    Thread Starter makphisto

    (@makphisto)

    I went ahead and found a Plugin (Flexi Quote Rotator) and just recreated the spot. So much easier than Javascript. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help with messed up code…’ is closed to new replies.