- WordPress Plugins
This article will demonstrate how to create WordPress split menu using JC Submenu WordPress Plugin by using either a shortcode, action, or widget.
A WordPress Split Menu is the process of creating a multi level menu, and displaying a menu section relative to the currently viewed object/page. For Example if a site has the following menu and pages:
Page 1 - Page 1.1 - Page 1.2 Page 2 - Page 1.3
Creating a split menu section for this example, you would set the start depth of 1, this means that when you are viewing any page or child page of Page 1 the split menu would output related items only:
Page 1 - Page 1.1 - Page 1.2
and if you were viewing any page or child page of Page 2 the split menu section would be:
Page 2 - Page 1.3
JC Submenu plugin comes with a widget titled “Split Menu Widget” which allows you to output your split menu within a wordpress sidebar.
It is located under Appearance > Widgets in your wordpress administration area.
JC Submenu plugin comes with a built in wordpress action to easily output a split menu anywhere within your theme.
<?php do_action( 'jcs/split_menu' , $menu, $args = array() ); ?>