WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to insert shortcodes into menu links (as I need to display a latest post link). I've figured out how to get the do_shortcode part done.
However, when I insert a shortcode as the menu link [latest_posts var="val"], it immediately gets formatted like so http:(forward-slash forward-slash)latest_postsvar=val. I'm using 3.5.1, and I was wondering what is the filter/action I can use to disable this.

share|improve this question

I haven't tested it but most of the time, a good way to disable shortcode, e.g in posts is to double [ like this :


Hopefully this will work in this context.

share|improve this answer
Just tried it, still end up like the formatted string :( – Angela May 10 '13 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.