WordPress.org

Forums

Global Content Blocks
[resolved] Can i use global content blocks in WordPress menus (7 posts)

  1. signcarver
    Member
    Posted 2 years ago #

    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/

  2. benz1
    Member
    Plugin Author

    Posted 2 years ago #

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

    Many thnaks for the donation, much appreciated.

  3. signcarver
    Member
    Posted 2 years ago #

    @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.

  4. benz1
    Member
    Plugin Author

    Posted 2 years ago #

    What code did you insert?

  5. signcarver
    Member
    Posted 2 years ago #

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

  6. benz1
    Member
    Plugin Author

    Posted 2 years ago #

    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

  7. signcarver
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Global Content Blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic