Title: error in code
Last modified: August 20, 2016

---

# error in code

 *  [manassevisser](https://wordpress.org/support/users/manassevisser/)
 * (@manassevisser)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/error-in-code-1/)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [14 years, 4 months ago](https://wordpress.org/support/topic/error-in-code-1/#post-2520977)
 * See that `}` at the fourth line from the bottom? Make that `<?php } ?>`.
 *  Thread Starter [manassevisser](https://wordpress.org/support/users/manassevisser/)
 * (@manassevisser)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/error-in-code-1/#post-2520980)
 * 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.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [T_FUNCTION](https://wordpress.org/support/topic-tag/t_function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [manassevisser](https://wordpress.org/support/users/manassevisser/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/error-in-code-1/#post-2520980)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
