2014-04-10 19:17
浏览 80


I have a custom menu structure created using Appearance > Menu

When on a page I would like to show a menu inside of the page containing all menu items that are children of that page in the custom menu. I can only get wp_get_nav() to display all pages and currently my solution is to use css to hide the other menu items which works but is not particularly elegant.

Any suggestions on how to solve this?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushaqing7080 2014-04-10 21:09

    Child Pages Shortcode - Once this plugin is installed and activated, simply place the shortcode it gives you where you’d like your list of child pages to appear (e.g. at the bottom of the content on your Parent Page).

    List Pages Shortcode - Inserting the shortcode [child-pages] will give you a simple list like the following:

    enter image description here

    Please test RVSubMenu plugin, see if it works for you. It's outdated, but should work perfectly. You may not want to use a widget, so look for a plugin to display widgets in your page (check out AMR Shortcode Any Widget).

    Here might be a resourceful link I found after a swift search using keywords - children menu items + wordpress

    Some dude made a cool post about your topic - check it out.

    解决 无用
    打赏 举报

相关推荐 更多相似问题