Title: w3c validator errors
Last modified: August 20, 2016

---

# w3c validator errors

 *  [Johnny Bravo](https://wordpress.org/support/users/herbiehysteria/)
 * (@herbiehysteria)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/)
 * hi, i’ve been at this all day and have got it down to 12 errors and 2 warnings,
   can someone with a higher level of experience show me what these remaining errors
   are pointing to, i’ve had trouble adding facebook opengraph tags to my header.
   php, so i’m sure this may be causing some of these errors. thanks
 * [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.artbyherbie.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&st=1&user-agent=W3C_Validator%2F1.3](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.artbyherbie.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&st=1&user-agent=W3C_Validator%2F1.3)

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3036991)
 * Do you think you could use the HTML entity of **`&`** in the errors such as,
 * >  Line 113, Column 57:
   >  general entity “appId” not defined and no default entity
   > js.src = “//connect.facebook.net/en_US/all.js#xfbml=1&appId=395575387176119”;
 * What’s happening here is wherever the ampersand symbol is used, the browser tries
   to read the preceding characters as a [HTML entity](http://www.w3schools.com/tags/ref_entities.asp).
   To prevent this, you ought to use the ampersand HTML entity, which is found on
   this page [http://www.w3schools.com/html/html_entities.asp](http://www.w3schools.com/html/html_entities.asp).
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3036998)
 * That said (and speaking as something of standardista), it a very minor issue 
   and is unlikely to cause a problem in any user agent. How are you adding these
   opengraph tags? Manually?
 *  Thread Starter [Johnny Bravo](https://wordpress.org/support/users/herbiehysteria/)
 * (@herbiehysteria)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3036999)
 * hi esmi, yes i tried adding them manually to header.php, but everytime i added
   the opengraph code my site went blank, just recently i manually inserted the 
   fb comments widget into comments.php, for which i needed a couple of fb meta 
   tags, so i used meta tag manager plugin to add fb:app_id and fb:admins for it
   to work.
 * i really need all the opengraph tags inserted into my site but am stuck as to
   how to safely add them manually.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037002)
 * Could you give us an example of a tag that you tried to add manually?
 *  Thread Starter [Johnny Bravo](https://wordpress.org/support/users/herbiehysteria/)
 * (@herbiehysteria)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037003)
 *     ```
       <meta property="fb:app_id" content="Your_FB_APP_ID" />
       <meta property="og:title" content="<?php the_title(); ?>"/>
       <meta property="og:description" content="<?php echo $post->post_excerpt;?>"/>
       <meta property="og:url" content="<?php the_permalink(); ?>"/>
       <meta property="og:image" content="<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '', '' ); echo $src[0];
       ?>"/>
       <meta property="og:type" content="<?php  if (is_single() || is_page()) { echo "article"; } else { echo "website";}
       ?>"/>
       <meta property="og:site_name" content="<?php bloginfo('name'); ?>"/>
       ```
   
 * with my info added obv 🙂
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037005)
 * Try replacing `<?php echo $post->post_excerpt;?>` with `<?php the_excerpt_rss();?
   >`. I can’t see anything else in there that would usually generate an ampersand–
   other than perhaps `Your_FB_APP_ID`.
 *  Thread Starter [Johnny Bravo](https://wordpress.org/support/users/herbiehysteria/)
 * (@herbiehysteria)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037008)
 * i have added the above and my site doesnt go blank, so it’s accepted the above
   opengraph tags, but i’m still at the same error count on w3c and my fb comments
   widget has an ‘url is unreachable’ warning each time it is displayed on a different
   post.
 * [http://www.artbyherbie.com/4093/project-management-ultimate-strength-and-fitness-nelson/](http://www.artbyherbie.com/4093/project-management-ultimate-strength-and-fitness-nelson/)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037010)
 * None of those validation errors relate to your opengraph tags in the header.

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

The topic ‘w3c validator errors’ is closed to new replies.

## Tags

 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/w3c-validator-errors/#post-3037010)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
