Title: Problem with validation
Last modified: August 18, 2016

---

# Problem with validation

 *  [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/)
 * [http://aktivfor.dk/forum](http://aktivfor.dk/forum) does not validate, such 
   as it stands. The problem seems to be with the file template-functions-post.php.
   It has to do with the form element. The validator says that it is not allowed
   here – or words to that effect. Does anyone have an idea as to how I might fix
   this problem? The only solution I can think of now is to remove the link to the
   validator. Then again, I’m sure that it must be some stupid trick that I have
   missed.
    TIA.

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

 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88053)
 * It looks like you’ve added form code to a post. Neat trick, but that’s probably
   what’s causing your grief.
    You’ve got an open P tag for the paragraph (which
   is right) the form tag followed by another opening P tag (with out first closing
   the first one.) This I think is what’s cauing the problem. With out knowing how
   exactly you entered your post, I’d say take out any carriage returns you have,
   and replace them with  tags instead – see if that helps. TG
 *  Thread Starter [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88057)
 * I haven’t done it as such. My part in it is that I have made a passwordprotected
   post. It comes out like what you see. I have been playing with the , because 
   I think that is the problem too. The trouble is, that it doesn’t work if you 
   remove them. The php generates a few of them too, and that way you end up with
   too many. I don’t think they are allowed inside the form element at all, but 
   I don’t know what should go instead. The only thing I have changed is that I 
   have translated the English into Danish.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88058)
 * Ah, OK. So it sounds like there is something wrong with the part that generates
   the form for password protected posts….. interesting that no one has come across
   this before…. I’ll give it a try and see what happens.
    Tg
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88059)
 * I think part of the problem is that you are going for Strict Validation as opposed
   to the rather more lax transitional. I would guess that is why other errors like
   this have not been reported, and the workrounds.
 *  Thread Starter [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88060)
 * I tried putting in the transitional doctype declaration. Unfortunately, it did
   not make any difference.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88061)
 * OK, just did a password protected post on my site and here’s my findings. Mine
   validated…. but I also noticed that my form tag is outside any P tags… it ends
   up between the div tag and the p tags…. so it would appear that something is 
   out of place. Not sure if it’s something from the translation, or if a file got
   messed up.
    TG
 *  Thread Starter [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88064)
 * OK. Thanks. I’ll start up with a clean copy of the template-functions-post.php
   first thing in the morning.
 *  Thread Starter [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88068)
 * Well, I couldn’t wait. I found a clean copy and uploaded it – it did not work.
   Are gremlins at play here, I wonder?
 *  Thread Starter [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * (@hoonnu)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88114)
 * TG, I also have a blog that I write in English. [http://hennystewart.com/blog](http://hennystewart.com/blog).
   On it, I also made a test post with password-protection. The result is the same
   as on [http://aktivfor.dk/forum](http://aktivfor.dk/forum) = The page is no longer
   valid xhtml. So now I am wondering what you did differently from me to make your
   page validate in the same circumstance.

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

The topic ‘Problem with validation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [hoonnu](https://wordpress.org/support/users/hoonnu/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-validation/#post-88114)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
