not working – multisite
-
I just installed your plugin and entered a snippet with this function:
function my_custom_menu_item( $items, $args ) { if ( function_exists ( 'the_msls' ) && 'Primary Navigation' == $args->theme_location ) { $obj = new MslsOutput; $arr = $obj->get( 2 ); if ( !empty( $arr ) ) { $items .= '<li>' . implode( '</li><li>', $arr ) . '</li>'; } } return $items; } add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 );
but wordpress collapsed with this message:
Fatal error: Cannot redeclare my_custom_menu_item() (previously declared in /web/htdocs/www.spinips.com/home/wp-content/plugins/functions.php:13) in /web/htdocs/www.spinips.com/home/wp-content/plugins/code-snippets/code-snippets.php(1103) : eval()’d code on line 11
I found then your instruction for safe mode, but I still don’t understand why it crashed, since I used that function for my previous theme (without multisite). Any suggestion?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘not working – multisite’ is closed to new replies.