Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31580

ravikapoor27 on "Parse error: syntax error, unexpected T_ENDFOREACH in page.php"

$
0
0

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.]


Viewing all articles
Browse latest Browse all 31580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>