WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] No error code but no java only on scheduled posts (10 posts)

  1. annmariedwyer
    Member
    Posted 1 year ago #

    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.

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    Could you post an example of what you're trying to embed?

  3. annmariedwyer
    Member
    Posted 1 year ago #

    <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>
  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. annmariedwyer
    Member
    Posted 1 year ago #

    Thank you, Esmi.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

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

  7. annmariedwyer
    Member
    Posted 1 year ago #

    Oh, thank you!

  8. passegua
    Member
    Posted 1 year ago #

    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.

  9. annmariedwyer
    Member
    Posted 1 year ago #

    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.

  10. passegua
    Member
    Posted 1 year ago #

    Thanks annmariedwyer,
    I'll wait the bug fix release :-)

Topic Closed

This topic has been closed to new replies.

About this Topic