Title: Validating wp_head();
Last modified: August 19, 2016

---

# Validating wp_head();

 *  [leahmarb](https://wordpress.org/support/users/leahmarb/)
 * (@leahmarb)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head/)
 * I am try to validate a website that has been created using word press… Im getting
   errors and they are all caused by wp_head(); which is in the pages. I commented
   out this line to see if the page would validate and it does.
 * This code is building the following HTML “<link rel=’alternate’ type=’application/
   rss+xml’ title=’WP E-Commerce Product List RSS’ href=’[http://bazaar.lalesso.com/index.php?rss=true&action=product_list&type=rss’/>&#8221](http://bazaar.lalesso.com/index.php?rss=true&action=product_list&type=rss’/>&#8221);
   the problem is that the & should be ‘& amp;’ (without the space) so that it can
   validate.
 * Does anyone know where i can edit the php that produces this code? Its simple
   but is producing a load of errors in the pages.
 * I would be very grateful for any help. Thanks

Viewing 1 replies (of 1 total)

 *  [pinoyca](https://wordpress.org/support/users/pinoyca/)
 * (@pinoyca)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head/#post-719235)
 * Open header.php in your Theme editor.
 * Is there a `<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('
   rss2_url') ?>" />` somewhere? If no, then edit the existing line to match this.

Viewing 1 replies (of 1 total)

The topic ‘Validating wp_head();’ is closed to new replies.

## Tags

 * [validate](https://wordpress.org/support/topic-tag/validate/)
 * [wp_head](https://wordpress.org/support/topic-tag/wp_head/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [pinoyca](https://wordpress.org/support/users/pinoyca/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head/#post-719235)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
