WordPress display first parent and its sub-menu only on sidebar

I have a main navigation and all parents have children.
Example:
Parent Page A:

  • Child A1
    – Child A11
    – Child A12
    – Child A12
    – Child A13
  • Child A2
  • Child A3

Parent Page B:

  • Child B1
    – Child B11
    – Child B12
    – Child B12
    – Child B13
  • Child B2

If we are click on Child A12, sidebar should looks like:
Parent Page A:

  • Child A1
    – Child A11
    – Child A12
    – Child A12
    – Child A13
  • Child A2
  • Child A3

Thanks.

Read more here: WordPress display first parent and its sub-menu only on sidebar

Leave a Reply

Your email address will not be published. Required fields are marked *