Skip to content

iamlukem/Wordpress-Children-Siblings-of-Custom-Menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Summary

I was trying to find something that would:

  1. Display children of a custom menu on the parent page.
  2. Siblings of a custom menu on sub pages.

This is what I came up with... I am sure it could probably be done cleaner. Enjoy.

Usage

Insert this wherever you want to display your menu. Adjust the code structure to suit your build (eg.

  • etc)

    Bugs.

    There is a bug on the 'current-menu' class when using custom post types as the parent menu.

About

Display Wordpress Children/Siblings of custom menu.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages