Support » Plugin: Global Content Blocks » Can i use global content blocks in WordPress menus

  • Resolved signcarver

    (@signcarver)


    I’m trying to insert a global content block in my WordPress menu and it is not recognized.

    Also, as a result, breadcrumbs are incorrect.

    Otherwise i really love this plugin – i have a main site and i am developing slave sites that share much of the content but this plugin allows me so much flexibility.

    Thank you very much!

    http://wordpress.org/extend/plugins/global-content-blocks/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author benz1

    (@benz1)

    How and where have you inserted the content block into the menu?

    Many thnaks for the donation, much appreciated.

    @benz1 – i tried two different places, in the page title and in the navigation label.

    The menu always displays the literal text.

    You’re welcome for the donation. It’s a very useful plugin.

    Plugin Author benz1

    (@benz1)

    What code did you insert?

    I entered EZ Dock Mid-Atlantic – screen shot here.

    Plugin Author benz1

    (@benz1)

    Sorry, didn’t see your earlier screenshots. Asked my developer to comment and he replied as follows:

    shortcodes don’t work when inserted in a menu context, or at least i haven’t seen such a case.

    So, in order to achieve what he wants, he could add in his functions.php file (inside his current theme) a filter for executing shortcodes on the menu; or, he could build a custom walker for the menu functionality (this page can help with that:
    http://codex.wordpress.org/Function_Reference/wp_nav_menu)

    either way, you cannot use shortcodes the way he wants natively

    Thanks for the update benz1.

    Since there are only a few menu items and since i don’t know php, i’m going to do the menu items by hand for now.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can i use global content blocks in WordPress menus’ is closed to new replies.