Title: HTML Issue
Last modified: August 21, 2016

---

# HTML Issue

 *  [jjsWP](https://wordpress.org/support/users/jjswp/)
 * (@jjswp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/)
 * Either I’m doing something pretty stupid or wordpress is… please someone help?!
 * I’m trying to create a news page on my site and have the following HTML code 
   from MotorCycle news that should produce a full page of news…
 *     ```
       <script type="text/javascript" src="http://www.motorcyclenews.com/shared/js/widget.min.js"></script>
       <script type="text/javascript">
           var MCN_widgetFeed = 'http://www.motorcyclenews.com/rss?N=343&Ntk=site&Ntt=MotoGP&Rpp=10';
           var MCN_widgetOptions = {
               affiliateId: 88,
               width: 500,
               height: 1000,
               textSize: 'L',
               showDesc: 1,
               showImages: 1,
               openLinks: 1
           };
           document.write('<div id="MCN_widget"></div>');
           MCN_widgetCreate(MCN_widgetFeed, MCN_widgetOptions);
       </script>
       <div id="MCN_widget_noscript"><a href="http://www.motorcyclenews.com/MCN/sport/">MCN Motorcycle sport</a></div>
       ```
   
 * However when copying this in to the ‘text’ editor on wordpress and pressing update
   changes get made to the code and it then looks like this…
 *     ```
       <script type="text/javascript" src="http://www.motorcyclenews.com/shared/js/widget.min.js"></script><script type="text/javascript">// <![CDATA[
           var MCN_widgetFeed = 'http://www.motorcyclenews.com/rss?N=343&Ntk=site&Ntt=MotoGP&Rpp=10';
           var MCN_widgetOptions = {
               affiliateId: 88,
               width: 500,
               height: 1000,
               textSize: 'L',
               showDesc: 1,
               showImages: 1,
               openLinks: 1
           };
           document.write('
   
       <div id="MCN_widget"></div>
   
       ');
           MCN_widgetCreate(MCN_widgetFeed, MCN_widgetOptions);
       // ]]></script>
       <div id="MCN_widget_noscript"><a href="http://www.motorcyclenews.com/MCN/sport/">MCN Motorcycle sport</a></div>
       ```
   
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_
 * And instead of a nice news article page it just creates a link to the news website…
 * Any ideas of why WordPress in its ultimate wisdom makes this unwanted change 
   on my behalf, and how I can stop it doing it to get the news feed to come through
   properly…
 * I’ve unticked the setting in ‘writing’ that allows wordpress to make changes 
   to invalid code, but alas still the problem…

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118036)
 * Are you getting some JavaScript errors? Can you link the page in question?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118037)
 * Have you reviewed [Using_Javascript](http://codex.wordpress.org/Using_Javascript)?
 *  Thread Starter [jjsWP](https://wordpress.org/support/users/jjswp/)
 * (@jjswp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118078)
 * [MotoGP News](http://www.motogpcalendar.com/motogp-results/motogp-news/)
 * but it should look something like the ‘preview’ on this page…
 * [http://www.motorcyclenews.com/MCN/WidgetBuilder/](http://www.motorcyclenews.com/MCN/WidgetBuilder/)
 * It’s not coming up with any errors. It just provides the link instead of showing
   the news articles.
 * I’ve just tried adding the java script to the header file and used the text plugin…
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118091)
 * Where is the link that it shows instead of news articles?
    Btw there are JavaScript
   errors: [http://snag.gy/Q5r1c.jpg](http://snag.gy/Q5r1c.jpg)
 *  Thread Starter [jjsWP](https://wordpress.org/support/users/jjswp/)
 * (@jjswp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118104)
 * The link is right above the comments box ‘MCN Motorcylce Sport’
 * Ok, so we’re getting to the root of the issue!
 * JavaScript errors…
 * Thanks for your help with this…
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118111)
 * Please review “Using JavaScript” link that Esmi posted.
 *  Thread Starter [jjsWP](https://wordpress.org/support/users/jjswp/)
 * (@jjswp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118128)
 * Thanks guys – I’ve tried to follow those steps but I’m getting to the end of 
   my technical knowledge, so I’m going to see if its a known issue with the theme
   creator MH Magazine

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

The topic ‘HTML Issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [jjsWP](https://wordpress.org/support/users/jjswp/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/html-issue-2/#post-4118128)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
