denverpost / wordpress-helpers

Small apps to help streamline article production and other WP tasks
MIT License
0 stars 2 forks source link

Sometimes the promo publishes javascript errors #30

Open freejoe76 opened 7 years ago

freejoe76 commented 7 years ago

per @githamm

Adding a hard news in-article widget to a story and it duplicated the code in all instances, and one is broken:

[dfm_iframe src='http://extras.denverpost.com/app/in-article-promo/hard-news-undefined.html' width='100%' height='100px']

[dfm_iframe src='http://extras.denverpost.com/app/in-article-promo/hard-news-1.html' width='100%' height='100px']

The story was long enough that it tried to add three widgets. The two in the body of the story did the dupe thing -- one good, one broken -- and the one at the bottom of the story was fine. So in all, it added five sets of short codes, two broken.

freejoe76 commented 7 years ago

I tried duplicating this on a long article, http://www.denverpost.com/2012/12/31/wonderful-film-preserves-voices-of-10th-mountain-division-ski-troops/ , and was not able to duplicate.