Support » Plugin: Shortcode in Menus » Not working

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Gagan Deep Singh

    (@gagan0123)

    Volunteer Moderator

    stosun

    First up, you can try using a shortcode [gs_test_shortcode] in order to verify if the plugin works or not. It will output a test URL, which means its working and if not, then there’s some other issue involved.

    Now if that shortcode is working, then also, there are chances that this particular shortcode you’re trying to use might not work as some plugins define the shortcode after certain point in the WordPress execution, and if they do so after navigation is set up, its not going to work.

    Also I’ve noticed that certain complex shortcodes with a lot of parameters do not work correctly with the custom link option, and that is why we built another solution for handling those shortcodes which is described in the ScreenShots

    I cannot test it out with the plugin you’ve mentioned as that is a commercial plugin, which means, in order to test it out, I’ll need to buy that, which isn’t a viable solution.

    Hi Gagan,
    Thanks for your reply.
    I tried both way, but it doesn’t work properly.
    1. I created a menu item as custom link then added [gs_test_shortcode] to Url field. when click link, it shows url as …/[gs_test_shortcode] .
    2.I checked shortcode box, and added [gs_test_shortcode] to second field of Shortcode box. then I saved menu. When clicking, it didn’t add any url.
    Here is test site; [removed] and menu items are at left sidebar.
    Regards

    Plugin Author Gagan Deep Singh

    (@gagan0123)

    Volunteer Moderator

    stosun

    In order to see what else could be manipulating the behaviour of the plugin I ran wpscan on your domain to find the list of plugins you are using, so that I can see if there’s anything thats causing the issue, but I couldn’t even find Shortcode in Menus plugin installed on your WordPress site.

    In order to make use of shortcodes in menus, you need to install and activate the plugin.

    Hi Gagan,
    I think you looked at wrong url.
    This is test site and under test folder. [removed]
    I double checked that is installed and activated ( ver.3.0).
    The menu I tested the shortcode is at [removed]

    Thanks at advance for your help.
    Best Regards

    Plugin Author Gagan Deep Singh

    (@gagan0123)

    Volunteer Moderator

    stosun

    Okay, I checked the wrong path.
    One question, which plugin are you using to make the menus appear in the sidebar?

    Hi,

    I use the7 premium theme and custom menu is bulid in.
    But, now, I added menu item to wp main menu, your test shortcode worked well.
    Thanks

    regards

    Plugin Author Gagan Deep Singh

    (@gagan0123)

    Volunteer Moderator

    stosun

    Okay, I think the issue is with the way the theme is handling the navigation menu in the sidebar, its not calling the hooks on which this plugin converts the shortcodes into actual output.

    Hi Gagan,

    Yes, shortcode works at top primary menu, properly.

    Could you remove site urls at this topic above?
    Thanks for your support.
    Best Regards

    [gs_test_shortcode] is not working in my menu; it outputs the shortcode literally without interpolation. Using WordPress 4.5.2

    EDIT:
    Oops! I had written custom menu walkers that were not using do_shortcode().

    @steven Vachon: This is not your topic. It’s also 10 months old & has been resolved by its original poster. If you require assistance then, as per the Forum Welcome, please post your own topic.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not working’ is closed to new replies.