i've created my own metabx. You can select items (shortcodes) from my plugin und these shortcodes return html code. How can i remove the complete a-Tag from my own meta-box content?


        array( Plugin_WP_NAME_Navigation, 'nav_menu_link'),


 add_filter('wp_nav_menu', 'do_shortcode');


<li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-1008" class="menu-item menu-item-type- menu-item-object- menu-item-1008"><a title="HTML CODE HERE</li>

i don't need the a-tag

  • The third parameter is a callback function that should echo the content of your meta box. I guess the problem starts there. – realloc Sep 13 '18 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.