Jump to content

Syntax error - need help


bgbs

Recommended Posts

 

Dreamweaver is telling me there is a syntax error  right below the </ul></div> menu 

<?php } 

I know this is happening because I'm doing something with the header title located between <h3></h3>

Full code below, please help

 

 

 

<div id="sidebar">
<?php 
if($post->post_parent)
  $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
  else
  $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0");
  if ($children) { ?>
  <div class="small_box widget_pages">
  <h3><a href="<?php echo $permalink; ?>" title="< ?php echo $parent_title; ?>"><?php echo $parent_title; ?></a></h3>
<?php } else { ?>
<h3><a href="<?php echo get_permalink(); ?>" title="< ?php echo $parent_title; ?>"><?php the_title(); ?></a></h3>
<?php } ?> 

  <ul>
  <?php echo $children; ?>
  </ul>
  </div>
  <?php } 

  
  
  
  if (is_page()){ #sidebar used for  pages
  if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Pages') ) : kriesi_small_description($themeurl);  else: ?>
                        <?php 
                        
                        kriesi_small_description($themeurl); 
                        kriesi_small_description2($themeurl);
                        ?>
                        <div class="widget">
                       <?php /*?> <?php get_search_form(); ?><?php */?>
					</div>
                        
                        
  <?php endif; 
  
  }else{ #sidebar used for blog & archives (category, tag, date, etc)
  
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Blog') ) : kriesi_small_description($themeurl);  else: ?>
                        
                        <?php 
                        
                        kriesi_small_description($themeurl);
                        kriesi_small_description3($themeurl); 
                        kriesi_small_description2($themeurl); ?>
                          
                        <div class="widget small_box">
                        <?php get_search_form(); ?>
                        </div>
                        
                        
<?php endif; }

if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Everywhere') ) : endif;?> 
</div><!-- end sidebar -->

Link to comment
https://forums.phpfreaks.com/topic/211221-syntax-error-need-help/
Share on other sites

  <h3><a href="<?php echo $permalink; ?>" title="< ?php echo $parent_title; ?>"><?php echo $parent_title; ?></a></h3>

<?php } else { ?>

<h3><a href="<?php echo get_permalink(); ?>" title="< ?php echo $parent_title; ?>"><?php the_title(); ?></a></h3>

 

 

noticed the space between < ang ?php  ?

  Quote

  <h3><a href="<?php echo $permalink; ?>" title="< ?php echo $parent_title; ?>"><?php echo $parent_title; ?></a></h3>

<?php } else { ?>

<h3><a href="<?php echo get_permalink(); ?>" title="< ?php echo $parent_title; ?>"><?php the_title(); ?></a></h3>

yes I do.

I corrected it, but I'm still seeing the same syntax problem

 

 

noticed the space between < ang ?php  ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.