WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Parse error: syntax error, unexpected T_ENDFOREACH in page.php (5 posts)

  1. ravikapoor27
    Member
    Posted 6 months ago #

    I am facing the problem with below mentioned error

    Parse error: syntax error, unexpected T_ENDFOREACH in /home/content/30/10594830/html/wp-content/themes/reaction/page.php on line 63

    below mentioned are code for page.php

    <?php get_header(); ?>
    
    <!-- ============================================== -->
    
    <!-- Super Container -->
    
    <div class="super-container main-content-area" id="section-content"> 
    
      <!-- 960 Container -->
      <div class="container"> 
    
        <!-- CONTENT -->
        <div class="eleven columns content"> 
    
          <!-- THE POST LOOP -->
          <?php while ( have_posts() ) : the_post(); ?>
    
          <!-- PAGE TITLE (and hide option) -->
          <?php if(get_custom_field('hide_title') == 'Yes') : else : ?>
          <h1 class="title"><span>
            <?php the_title(); ?>
            </span></h1>
          <?php endif; ?>
    
          <!-- FEATURED IMAGE (optional) -->
          <?php if(get_option_tree('show_featured_image') == 'Yes') : ?>
          <?php if (has_post_thumbnail( $post->ID )) 	{
    						$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
          <a>" data-rel="prettyPhoto"> <img class="aligncenter" src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" /> </a> <br class="clearfix" />
          <?php } else {} ?>
          <?php endif; ?>
    
          <!-- THE PAGE CONTENT -->
          <?php the_content(); ?>
    
          <!-- PAGINATION for Multiple pages -->
          <?php wp_link_pages('before=<div id="page-links"><span>Pages:</span>&after=</div><hr />&link_before=<div>&link_after=</div>'); ?>
          <?php endwhile; ?>
        </div>
        <!-- /CONTENT --> 
    
        <!-- ============================================== --> 
    
        <!-- SIDEBAR -->
        <div class="five columns sidebar">
          <?php dynamic_sidebar( 'default-widget-area' ); ?>
        </div>
        <li id="lightweights" class="widget-container">
          <h3 class="widget-title">Lightweights</h3>
          <?php $cam_brands = get_terms('brands', 'hide_empty=1'); ?>
    
    <ul>
    <li>
            	<a>slug, 'lightweights' ); ?>"> <?php echo $lightweights->name; ?> </a>
    
    <ul>
                <?php
                $wpq = array( 'post_type' => 'fighters', 'taxonomy' => 'lightweights', 'term' => $brand->slug );
                $brand_posts = new WP_Query ($wpq); ?>
                <?php foreach( $brand_posts->posts as $post ) : ?>
    
    <li> <a>ID ); ?>"> <?php echo $post->post_title; ?> </a> </li>
                <?php endforeach ?>
              </ul>
    </li>
            <?php endforeach ?>
          </ul>
        <!-- /SIDEBAR --> 
    
      </div>
      <!-- /End 960 Container --> 
    
    </div>
    <!-- /End Super Container --> 
    
    <!-- ============================================== -->
    
    <?php get_footer(); ?>

    Please someone help me
    Thanks

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  2. esmi
    Forum Moderator
    Posted 6 months ago #

    Where did you download this theme from?

  3. ravikapoor27
    Member
    Posted 6 months ago #

    Sorry, I forgot the download source. but I am using reaction theme may be understand.

    But i really need help, I didn't got any solution of this problem.

    Thanks

  4. esmi
    Forum Moderator
    Posted 6 months ago #

    I'm sorry but as you appear to be using a non-WPORG theme, you need to seek support from the theme's developers - paid or otherwise. We only support themes downloaded from wordpress.org here.

  5. ravikapoor27
    Member
    Posted 6 months ago #

    Thanks

Reply

You must log in to post.

About this Topic

Tags