Half working
-
Hi.
I am using your plugin.
But I think I should tell you, that it is only halfe working.
When I use shortcode in links, the plugin only works, if I add this to my themes functions.phpadd_filter('wp_nav_menu', 'do_menu_shortcodes'); function do_menu_shortcodes( $menu ){ return do_shortcode( $menu ); }
The “Shortcode” thing doesn′t work for me. I can fill title and content with everything and move it to menus, but there is absolutley nothing shown in the menu, regardless of the menu position (first level, sub menu).
I am using this plugin to execute some dynamical shortcodes in the url of custom links.
For example… I have to link my current logged in user to something like “/author/USERNAME/profile.php”
So I added this to functions.php:
add_shortcode( ‘userlogin’ , ‘df_get_current_userlogin’ );
function df_get_current_userlogin(){
$user = wp_get_current_user();
return $user->user_login;
}and created a link url like this:
“/author/[userlogin]/profile.php”
Works great.
But, cause the shortcode thing is not workig, I please you NOT to remove the shortcode in custom links… this would kill my blog
- The topic ‘Half working’ is closed to new replies.