Square brackets in URL (Custom Menus)
-
I have a URL that I need to put in my custom menu, but it contains square brackets [].
Something like…
‘mypage/?action=search&class[]=1&class[]=2&class[]=3’When I do this, WP strips the brackets. I’m guessing it’s because shortcode uses these.
I’ve also tried using the ascii equivalent, which works the first time, but after updating, it displays the brackets, so any subsequent changes to the menu will remove the brackets.. unless I use ascii every time any menu item needs changing.
Is there a way to do this? Do I need to add a filter?
Thanks ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Square brackets in URL (Custom Menus)’ is closed to new replies.