Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter macharborguy

    (@macharborguy)

    i think i may have answered my own question without realizing it (amazing what 2 beers can do to a persons thought process)…

    since i am hooking to “admin_print_scripts-post-new.php”, i can use the PHP code to pull the proper date information, then I just generate a javascript block that inserts the data.

    Thread Starter macharborguy

    (@macharborguy)

    Found that it WAS a plugin that was causing the issue.

    Parallelize is a plugin that will allow you to set up your own CDN of sorts, spreading media across different URLs/hostnames. If you enable it but forget to add at least your default host name to its settings, Parallelize will simply remove the current hostname in an image URL rather than use your main hostname by default.

    question, how do you handle WordPress’s built in nature of outputing XHTML, as well as plugins that have XHTML style tag endings?

    Thread Starter macharborguy

    (@macharborguy)

    sorry, i see what happened with the above code post. here is what should have appeared in the code block…

    <div class="banner-block">
    <h1 style="text-align: left;">News Post Originally Appeared On...</h1>
    <p><a href="https://feeds.feedburner.com/gamertell?format=xml" target="_blank">
    <p> </p>
    <p><img src="https://www.thegeekmedia.com/assets/img/banners/blogs/1.jpg" alt="" width="225px" height="50px" />
    </a></div>

    The banner gets added to each of my posts via the WP-O-Matic plugin for pulling content from blogs that are affiliated with my own blog/website. When WP-O-Matic initially generates the post, everything appears fine and dandy. It is if I go into the post via the WordPress editor that everything goes wonky and all of these rogue <p> tags get tossed in for seemingly no reason.

    Thread Starter macharborguy

    (@macharborguy)

    The <p> tags are appearing “within” the post content. So anything that would be printed via the the_content() function is getting this odd treatment.

    Here is the way the code shows up in the visual WordPress editor, even when “use visual editor” is turned off in my profile, AND this is how the raw data appears in the database when I look in the table wp_posts…

    <div class="banner-block">
    <h1 style="text-align: left;">News Post Originally Appeared On...</h1>
    <a href="https://feeds.feedburner.com/gamertell?format=xml" target="_blank">
    <img src="https://www.thegeekmedia.com/assets/img/banners/blogs/1.jpg" alt="" width="225px" height="50px" />
    </a></div>

    The above is valid and is how it is supposed to look. Below, however, is how it shows up in the View Source of a web browser and how the W3 Validator is reading it.

    <div class="banner-block">
    <h1 style="text-align: left;">News Post Originally Appeared On...</h1>
    <a href="https://feeds.feedburner.com/gamertell?format=xml" target="_blank">
    
    <img src="https://www.thegeekmedia.com/assets/img/banners/blogs/1.jpg" alt="" width="225px" height="50px" />
    </a></div>

    Now this is only a snippet of the code, but it is also where the invalidations start. The <p> tags get inserted for no reason and on top of that are not even closed properly.

    Now, as for my question which I felt what quite obvious: How do I stop WordPress from inserting these tags?

    Thread Starter macharborguy

    (@macharborguy)

    AWESOME, even better. thanks

    do NOT use img#wpstats{display:none} to hide the smiley face. The developers of wpstats specifically state that anything that would prevent the image from loading will break your stats. They suggest to use this code instead…

    img#wpstats{width:0px;height:0px;overflow:hidden}

Viewing 7 replies - 1 through 7 (of 7 total)