Fail in index.php
-
Look at my website: http://www.uruguaytodobolso.com, in the front page of the blog a message of error appears:
Parse error: syntax error, unexpected T_ENDWHILE in /home/uruguayt/public_html/wp-content/themes/PinboardChild/pinboard/index.php on line 24`
But if you go to a post, or page of the blog: http://uruguaytodobolso.com/?p=424#comments the page appears without any problem
This is my index.php code:
<?php get_header(); ?> <?php if( is_home() && ! is_paged() ) : ?> <?php if( pinboard_get_option( 'slider' ) ) : ?> <?php get_template_part( 'slider' ); ?> <?php endif; ?> <?php get_sidebar( 'wide' ); ?> <?php echo do_shortcode("[metaslider id=40]"); ?> <?php get_sidebar( 'boxes' ); ?> <?php elseif( ( is_home() && is_paged() ) || ( ! is_home() && pinboard_get_option( 'location' ) ) ) : ?> <?php pinboard_current_location(); ?> <?php endif; ?> <div id="container"> <section id="content" <?php pinboard_content_class(); ?>> <?php if( is_category( pinboard_get_option( 'portfolio_cat' ) ) || ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?> <?php pinboard_category_filter( pinboard_get_option( 'portfolio_cat' ) ); ?> <?php endif; ?> <?php if( have_posts() ) : ?> <div class="entries"> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> </div><!-- .entries --> <?php pinboard_posts_nav(); ?> <?php else : ?> <?php pinboard_404(); ?> <?php endif; ?> </section><!-- #content --> <?php if( 'no-sidebars' != pinboard_get_option( 'layout' ) && 'full-width' != pinboard_get_option( 'layout' ) && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?> <?php get_sidebar(); ?> <?php endif; ?> <div class="clear"></div> </div><!-- #container --> <?php get_footer(); ?>
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fail in index.php’ is closed to new replies.