First of all, thanks for this great plugin.
Is there any way to exclude certain pages from the secondary menu?
Thanks.
http://wordpress.org/extend/plugins/genesis-subpages-as-secondary-menu/
First of all, thanks for this great plugin.
Is there any way to exclude certain pages from the secondary menu?
Thanks.
http://wordpress.org/extend/plugins/genesis-subpages-as-secondary-menu/
I am wondering the same thing. There are lots of reasons you might want to exclude certain pages.
Also, is there any documentation for the filters that are available?
To exclude pages, use the be_genesis_subpages_args filter like so: https://gist.github.com/1481985
These args go into wp_list_pages, so use that codex page as a guide for what parameters you can use.
Here's all the filters (the best place to look is in the plugin itself, just search for apply_filters):
be_genesis_subpages_args.
Default (array):
$args = array(
'child_of' => $parent->ID,
'title_li' => '',
'echo' => false,
);
be_genesis_subpages_wrapper
Default (array):
array( '<ul id="menu-genesis-subpages" class="nav">', '' )
You must log in to post.