Timeline for Insert menu with a custom walker into page / post body using shortcode?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 1, 2019 at 15:03 | comment | added | rambillo | Yes! Revising the walker element and shortcode parameter as you've suggested (and validating $walker is not null) resolves the warning and successfully pulls the menu -- with my custom walker -- into the page content! Thank you! | |
Jul 1, 2019 at 14:58 | vote | accept | rambillo | ||
Jun 30, 2019 at 7:53 | history | edited | Antti Koskinen | CC BY-SA 4.0 |
added 443 characters in body
|
Jun 30, 2019 at 7:50 | comment | added | Antti Koskinen | @rambillo I tested your code more thoroughly on my local WP install and updated my answer with my findings. Can you get your code working, if you make the same changes to it as I did? | |
Jun 30, 2019 at 7:47 | history | edited | Antti Koskinen | CC BY-SA 4.0 |
added 443 characters in body
|
Jun 30, 2019 at 1:24 | comment | added | rambillo | Thanks for the reply. Should have mentioned I'd already tried explicitly including the class similar to what you've suggested - and confirmed doing so doesn't resolve or effect this warning. In fact, it's worth noting I can load this same menu as a regular menu just fine. And I can load this menu in page/post content with the shortcode using the standard walker (by way of not specifying a walker at all) just fine. Just not able to get it embedded into page/post content using my preferred custom walker by way of a shortcode, for whatever reason, so far. | |
Jun 29, 2019 at 22:30 | history | answered | Antti Koskinen | CC BY-SA 4.0 |