[wp-hackers] Shortcodes in Custom Menu Items

Nicholas Ciske nl at thoughtrefinery.com
Thu May 30 15:28:05 UTC 2013


This will do it:

add_filter('wp_nav_menu', 'do_menu_shortcodes');
function do_menu_shortcodes( $menu ){
	return do_shortcode( $menu );
}
_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske


On May 30, 2013, at 10:19 AM, Jesse Friedman wrote:

> Is it possible to put a shortcode like [siteURL]/about-us in a custom menu
> link?
> 
> I know it isn't out of the box, but it doesn't look as easy as enabling
> shortcodes in widgets and I can't find any documentation.
> 
> 
> 
> -- 
> thanks
> 
> *jesse friedman*
> jes.se.com *
> *



More information about the wp-hackers mailing list