Forums

error in code (3 posts)

  1. manassevisser
    Member
    Posted 4 months ago #

    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???

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

  3. manassevisser
    Member
    Posted 4 months ago #

    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 :)

Reply

You must log in to post.

About this Topic