<?php if ( is_search() || is_archive() || is_tag() ) : ?>
<section class="summary">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="btn"><?php _e('Read more', GKTPLNAME); ?></a>
</section>
<?php else : ?>
<?php if (!is_category() && (is_search() || is_archive() || is_tag())) : ?>
<section class="summary">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="btn"><?php _e('Read more', GKTPLNAME); ?></a>
</section>
<?php else : ?>
<?php if(is_single()) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_content( __( 'Continue reading →', GKTPLNAME ) ); ?>
<?php endif; ?>
<?php if(is_single() || is_category()) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_content( __( 'Continue reading →', GKTPLNAME ) ); ?>
<?php endif; ?>
<?php if ( is_search() || is_archive() || is_tag() ) : ?>
<section class="summary">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="btn"><?php _e('Read more', GKTPLNAME); ?></a>
</section>
<?php else : ?>
<?php if (is_page_template('template.latest.php') || is_search() || is_archive() || is_tag() ) : ?>
<section class="summary">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="btn"><?php _e('Read more', GKTPLNAME); ?></a>
</section>
<?php else : ?>
<?php if (is_search() || is_archive() || is_tag() ) : ?>
<?php if ($tpl->isLatestPosts || is_search() || is_archive() || is_tag() ) : ?>
// create an access to the template main object
global $tpl;
// create an access to the template main object
global $tpl;
// set the flag for the latest posts page template
$tpl->isLatestPosts = is_page_template('template.latest.php');
.tag-page article,
.category-page article,
.search-page article,
.archive-page article,
.author-page article
.tag-page article,
.category-page article,
.search-page article,
.archive-page article,
.author-page article,
.page-template-template-latest-php article