Is it possible to use View to generate a list of menu items? My platform is a learning platform, I want to dynamically create a menu to list all login user enrolled classes, how can I put the result to a menu?
You can't populate a WordPress menu from a View, but you can create something that looks like a menu using a View where, in the output section, you set it up to generate markup, say, for a ul element where the individual results generate a li item that has a link to the current post.
I think you are familiar with the legacy editor for Views, so it is a question of editing the loop output section with the necessary markup and using Views shortcodes (e.g. wpv-post-link) to output the link.
Exactly how you implement it depends on your theme, it may make sense to generate similar markup (including class names) as the existing menus to pick up the same styles.
The topic ‘[Closed] Using View to generate a list of menu items’ is closed to new replies.