• Hey,

    I have an error in the following code:

    <? php
    
    function secondary_menu_listing(){
    
    ?>
    
    <div id=secondary_menu_listed><? php
    if (is_page (array('9,231,237,235')));
     wp_list_pages (include='9,231,237,235');
    
    if (is_page (array('14,121,124,119,104')));
     wp_list_pages (include='14,121,124,119,104');
    
    if (is_page (array('246,230,252,254,259,257')));
     wp_list_pages (include='246,230,252,254,259,257');
    ?></div>
    }
    <? php add_action ('graphene_before_content'); ?><? php
    
    ?>

    I can’t seem to find out what error I’m making.

    It says “Parse error: syntax error, unexpected T_FUNCTION in functions.php on line 3”

    can anyone tell me what’s wrong???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    See that } at the fourth line from the bottom? Make that <?php } ?>.

    Thread Starter manassevisser

    (@manassevisser)

    Done, but it’s still giving me error. Deleted the file with ftp, made a new one, changed the error into your solution, but it’s still the same… maybe something else?

    Am trying to make lists for secondary menu’s just underneath the header’s menu, but with different menu’s for different pages. I wanted to make them horizontal and loose bullets with style.css, that’s why de <div> is in…

    Still, I think it’s a good attempt for me, since I’m a big NooB ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error in code’ is closed to new replies.