Parse error: syntax error, unexpected $end in C:

Parse error: syntax error, unexpected $end in C:
line 30 error i need help please

<?php if ( has_nav_menu( 'primary' ) ) : ?> <?php wp_nav_menu( array( 'menu_class' => 'superfish', 'theme_location' => 'primary' ) ); ?> <? else : ?>
  • <?php _e('Home',PRIMA_DOMAIN); ?>
  • <?php $exclude = ( (get_option('show_on_front') == 'page') && get_option('page_on_front') ) ? '&exclude='.get_option('page_on_front') : ''; wp_list_pages('title_li=&sort_column=menu_order'.$exclude); ?>
<? endif; ?>

If syntax are incorrect, try with

[php]<?php
if ( has_nav_menu( ‘primary’ ) ) {
wp_nav_menu( array( ‘menu_class’ => ‘superfish’, ‘theme_location’ => ‘primary’ ) );
}else{
?>


  • <?php _e('Home',PRIMA_DOMAIN); ?>

  • <?php
    $exclude = ( (get_option(‘show_on_front’) == ‘page’) && get_option(‘page_on_front’) ) ? ‘&exclude=’.get_option(‘page_on_front’) : ‘’;
    wp_list_pages(‘title_li=&sort_column=menu_order’.$exclude); ?>

<?php
}
?>[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service