I’m using the custom menus in WP 3.3.1
. I can drag a category into a menu and it creates a link to an archive page of all the posts form that category. Is there something I can put in the functions that forces a list of all the posts from that category instead?
So, I would end up with something like:
<ul>
<li><a>Category</a>
<!-- expander -->
<ul>
<li><a>Psot 1</a></li>
<li><a>Post 2</a></li>
<li><a>Post 3</a></li>
</ul>
</li>
</ul>
You can make walker class in functions.php
This is exaple in the end of walker with posts entry:
You can manually add posts to the menu by enabling “posts” in the screen options (click “screen options” in the upper right-hand corner and then tick the “posts” box — you’ll now see a box with all your posts in it).
Unfortunately, though, it sounds like you want the menu to update automatically with all your posts for a certain category. I’m not aware of any way to do that with custom menus. I think you’d have to get your hands dirty and actually modify the theme to get that working…