Support » Fixing WordPress » No error code but no java only on scheduled posts

  • Resolved annmariedwyer

    (@annmariedwyer)


    I put a banner in my posts and occasionally a raffle. As long as I go live with the publish button they hold. If I schedule (which I need to because I do not have all day to wait for my website and have a posting schedule), the scripts are stripped out of the post leaving only “// //”.

    From the HTML screen, the scripts have been stripped out altogether, despite me checking to see them there after the post schedules. They are getting lost when the scheduler publishes the posts.

    I have read the post with javascript errors and solutions, but there is no error code anywhere. Just missing scripts.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Could you post an example of what you’re trying to embed?

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-XXXXXXXXXXXXXXXXXX";
    /* Poetry Banner */
    google_ad_slot = "5075694490";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    esmi

    (@esmi)

    Forum Moderator

    Do not add <script></script> tags to the post content area of scheduled posts. There is a known issue with some HTML markup & post scheduling that should be fixed shortly.

    Thank you, Esmi.

    esmi

    (@esmi)

    Forum Moderator

    If you want to follow the progress of the fix, it’s at http://core.trac.wordpress.org/ticket/22944

    Oh, thank you!

    I’m waiting for the bug to be fixed, meanwhile I’d like to understand how could I avoid it removing <script></script> tags?
    I do not see any <script> in my adsense lines, but only </script>.
    So how could I remove them?

    From this:

    <script type=”text/javascript”><!–
    google_ad_client = “ca-pub-XXXXXXXXXXXXXXXXXX”;
    /* Poetry Banner */
    google_ad_slot = “5075694490”;
    google_ad_width = 468;
    google_ad_height = 60;
    //–>
    </script>
    <script type=”text/javascript”
    src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
    </script>

    To what?

    Many thanks.

    You cannot. The only way to fix this until the bug fix is released is to insert the script after the post goes live. Once it is live, WP will not strip the script out of your ad.

    Thanks annmariedwyer,
    I’ll wait the bug fix release 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No error code but no java only on scheduled posts’ is closed to new replies.