the_content inside menu
-
Hi!
I’m creating my own template right now, but i don’t know how the handle the_content inside a menu item.
I’ve my content written in a page and i want to display the content inside te menu, let me explain:
$('li.current-menu-item a').after('<?php if(have_posts()):while(have_posts()):the_post();the_content();endwhile; endif;?>'); <ul> <li><a href="#">Menu item 1</a></li> <li class="current-menu-item"><a href="#">Menu item 2</a><?php the_content();?></li> </ul>I’ve written a jquery script, but i can’t add the_content using .after in jquery.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘the_content inside menu’ is closed to new replies.