[Plugin: WP MVC] interacting with the menu system
-
So I opened an issue over on Github, but I’m not even sure it’d accomplish what I’m actually trying to do.
I’m trying to figure out a way to add items dynamically to the navigation menu of my WordPress theme using WP MVC. I thought the best way to do that would be to create a custom layout that renders my data as li tags. And then use the output of that to put into the menu using the wp_nav_menu_items filter. But that proved problematic, because I can’t just capture the output of the rendering.
I have a solution now, but it involves forgoing the WP MVC framework and doing some sql queries and such outside the context of WP MVC.
Is there a more kosher way of going about what I want?
- The topic ‘[Plugin: WP MVC] interacting with the menu system’ is closed to new replies.