Skip Navigation

[Closed] Using View to generate a list of menu items

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 2 months ago.

Author
Posts
#2234205

Dear Sir/Madam,

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?

Best regards,

Kelvin

#2234341

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

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.