I have small php error for <?php endif; usage. On line 41 You can check it here. http://phpcodechecker.com/ Can you help me? <?php /** * @package WordPress * @subpackage U-Design */ global $udesign_options; // construct an array of portfolio categories $portfolio_categories_array = explode( ',', $udesign_options['portfolio_categories'] ); if ( $portfolio_categories_array != "" && post_is_in_category_or_descendants( $portfolio_categories_array ) ) : // Test if this Post is assigned to the Portfolio category or any descendant and switch the single's template accordingly include 'single-Portfolio.php'; else : // Continue with normal Loop (Blog category) get_header(); $content_position = ( $udesign_options['blog_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16'; if ( $udesign_options['remove_single_sidebar'] == 'yes' ) $content_position = 'grid_24'; ?> <div id="content-container" class="container_24"> <div id="main-content" class="<?php echo $content_position; ?>"> <div class="main-content-padding"> <?php do_action('udesign_above_page_content'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <?php echo types_render_field("employ-image", array("size" => "thumbnail", "align" => "left"));?> <?php // Post Image if( $udesign_options['display_post_image_in_single_post'] == 'yes' ) display_post_image_fn( $post->ID, false ); the_content(__('<p class="serif">Read the rest of this entry »</p>', 'udesign')); wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php endif; // end meta ?> </div><!-- end main-content-padding --> </div><!-- end main-content --> <?php if( ( !$udesign_options['remove_single_sidebar'] == 'yes' ) && sidebar_exist('BlogSidebar') ) { get_sidebar('BlogSidebar'); } ?> </div><!-- end content-container --> <?php endif; // end normal Loop ?> <div class="clear"></div> <?php get_footer(); Code (markup):
A blind guess, there's a "while():" there in line 27 which you may have left unclosed? Ref: http://www.php.net/manual/en/control-structures.alternative-syntax.php