Title: Valid code with [pagelist]
Last modified: August 21, 2016

---

# Valid code with [pagelist]

 *  Resolved [lalalapo](https://wordpress.org/support/users/lalalapo/)
 * (@lalalapo)
 * [13 years ago](https://wordpress.org/support/topic/valid-code-with-pagelist/)
 * Hi,
 * I’m using your plugin. It is very well done. My ploblem is, that the code is 
   invalid: I get the hint:
 * > Line 219, Column 9: No p element in scope but a p end tag seen.
   > </p>
 * So the plugin adds a p endtag and this makes the HTML5-Code invalid. How can 
   I delete this </p> tag to get a valid code? Is this possible?
 * Regards,
 * lalalapo
 * [http://wordpress.org/extend/plugins/page-list/](http://wordpress.org/extend/plugins/page-list/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [lalalapo](https://wordpress.org/support/users/lalalapo/)
 * (@lalalapo)
 * [13 years ago](https://wordpress.org/support/topic/valid-code-with-pagelist/#post-3784707)
 * I found the mistake myself: WordPress added the p endtag because because the 
   text before the shorcode did not end with a </p>. So it was added at the end 
   of page. Solution: Add a <p> and </p> at the text before the shortcode. Now it
   is working correctly.

Viewing 1 replies (of 1 total)

The topic ‘Valid code with [pagelist]’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/page-list_ffffff.svg)
 * [Page-list](https://wordpress.org/plugins/page-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-list/)
 * [Active Topics](https://wordpress.org/support/plugin/page-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-list/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [lalalapo](https://wordpress.org/support/users/lalalapo/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/valid-code-with-pagelist/#post-3784707)
 * Status: resolved