• Hey,

    I’m trying to create different secondary menu’s for different page’s with making lists (using style.css to make them horizontal and lose the bullets; using action hooks to place it where I want) but I’m getting this error. I’m new to php, but it feels I’m getting closer and closer in solving this. Can anyone have a look and tell me what I’m doing wrong here??

    this is the error

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in URL/themes/graphene-child/functions.php on line 7

    here’s there code:

    <?php
    if ( function_exists( 'register_nav_menus' ) ) {
    	register_nav_menus(
    		array(
    		   	'secondary_menu_1' => 'Band Pages',
    		  	'secondary_menu_2' => 'Media Pages'
    		  	'secondary_menu_3' => 'Fans Pages'
    		)
    	);
    }
    
    ?>
    
    <? php
    
    if ( function_excists( 'secondary_menu_1')){
    	?><div id=secondary_menu_1>
    		<? php wp_list_pages (include=' 9,231,237,235'); ?></div>
    
    <? php } ?>
    
    <? php
    
    if ( function_excists( 'secondary_menu_2')){
    	?><div id=secondary_menu_2>
    		<? php wp_list_pages (include='14,121,124,119,104'); ?></div>
    
    <? php } ?>
    
    <? php
    
    if ( function_excists( 'secondary_menu_3')){
    	?><div id=secondary_menu_3>
    		<? php wp_list_pages (include='246,230,252,254,259,257'); ?></div>
    
    <? php } ?> 
    
    <? php
    
    if (is_page(array('9,231,237,235')));
    	function ('secondery_menu_1')
    
    if (is_page(array('14,121,124,119,104')));
    	function ('secondary_menu_2')
    
    if (is_page(array('246,230,252,254,259,257')));
    	function ('secondary_menu_3')
    ?>
    
    <? php add_action ('graphene_before_content'); ?>
  • The topic ‘Unexpected T_CONSTANT_ENCAPSED_STRING on child-themes function.php’ is closed to new replies.