What's wrong
Placing `<div>` directly inside `<ul>` breaks list semantics and item numbering.
Who it affects
Screen readers announce incorrect item counts or stop announcing list structure.
How to fix on WordPress
Ensure custom menu walkers and post loop templates do not inject `<div>` as direct children of `<ul>`.
Code example
Problematic Code
PHP
<ul class="custom-nav">
<span class="nav-group">
<li><a href="#">Home</a></li>
</span>
</ul>Recommended Accessible Code
PHP
<ul class="custom-nav">
<li class="nav-item"><a href="#">Home</a></li>
</ul>How to check your fix
Validate HTML using W3C validator or DevTools to verify all direct children of `<ul>` and `<ol>` are `<li>` tags.