Hei, Kathryn. I followed your child theme experiment with Penscratch, but at the excerpt part i always get this error:
Parse error: syntax error, unexpected ‘else’ (T_ELSE) in /abc/penscratch-child/content.php on line 36
After many tries, i still couldn’t find out the problem in the code. Can you help me out, please?
This is the code you suggested in your presentation:
if ( is_search() || is_home() ) : // Only display Excerpts for Search or Blog ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'penscratch' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'penscratch' ),
'after' => '</div>',
) );
?>php
</div><!-- .entry-content -->
<?php endif; ?>
</article><!-- #post-## -->
-
This reply was modified 8 years, 4 months ago by adispune.