Timeline for Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
Current License: CC BY-SA 3.0
23 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:37 | history | edited | CommunityBot | replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/ | |
| Nov 17, 2013 at 22:59 | history | edited | Marcin Bobowski | CC BY-SA 3.0 | added 2083 characters in body |
| Nov 12, 2013 at 19:07 | history | edited | Marcin Bobowski | CC BY-SA 3.0 | added 29 characters in body |
| Nov 11, 2013 at 10:01 | history | tweeted | twitter.com/#!/StackWordPress/status/399839210548764673 | ||
| S Oct 29, 2013 at 16:01 | history | bounty ended | Marcin Bobowski | ||
| S Oct 29, 2013 at 16:01 | history | notice removed | Marcin Bobowski | ||
| Oct 26, 2013 at 20:27 | vote | accept | Marcin Bobowski | ||
| Oct 26, 2013 at 14:37 | comment | added | gmazzap | @MarcinBobowski I've edited the code, now it works. | |
| Oct 26, 2013 at 13:30 | comment | added | Marcin Bobowski | @G.M. This is the menu: d.pr/i/DAkB, this is the php callout: d.pr/i/S3L6, I'm on "Partnerzy" subpage, and the result looks this way: d.pr/i/jqRW. It should display: "Partnerzy, Galeria, Projekty" instead of "Strona glowna", "Kontakt". | |
| Oct 26, 2013 at 4:37 | comment | added | gmazzap | @MarcinBobowski if you tell me which kind of details you miss in the answer, maybe I can edit it adding them. | |
| Oct 25, 2013 at 15:55 | answer | added | gmazzap | timeline score: 5 | |
| Oct 24, 2013 at 6:40 | comment | added | Marcin Bobowski | @cale_b - its the worst case scenario, but I'm searching a way to do it pure html/php based. | |
| Oct 23, 2013 at 15:07 | comment | added | random_user_name | Any reason you wouldn't just control what is shown / hidden using css and the rich class naming that WP provides for it's menus? | |
| Oct 22, 2013 at 16:26 | history | edited | Marcin Bobowski | CC BY-SA 3.0 | added 218 characters in body |
| S Oct 22, 2013 at 16:23 | history | bounty started | Marcin Bobowski | ||
| S Oct 22, 2013 at 16:23 | history | notice added | Marcin Bobowski | Improve details | |
| Oct 22, 2013 at 16:22 | comment | added | Marcin Bobowski | I don't think it can be done with use of get_ancestors, as it works only on hierarchical elements, and we are talking about editable menu structure, that don't connect with posts/page hierarchical, or am I wrong? | |
| Oct 14, 2013 at 23:33 | comment | added | Milo | you can make this solution dynamic by just passing the current page's top most ancestor as the submenu argument. see get_queried_object and get_ancestors. | |
| Oct 13, 2013 at 17:17 | history | edited | Marcin Bobowski | CC BY-SA 3.0 | edited title |
| Oct 13, 2013 at 17:11 | history | edited | Marcin Bobowski | CC BY-SA 3.0 | added 316 characters in body |
| Oct 13, 2013 at 17:07 | comment | added | Marcin Bobowski | Well, almost, just I need it to be dynamic and display children of only current brach (either it is a top menu element as a current page or any to its child elements) | |
| Oct 13, 2013 at 16:38 | comment | added | Milo | possible duplicate of Display a portion/ branch of the menu tree using wp_nav_menu() | |
| Oct 13, 2013 at 16:32 | history | asked | Marcin Bobowski | CC BY-SA 3.0 |