Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( is_search() ) : // Only display Excerpts for Search ?>
- <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>', 'safe_investment_home_inspections' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'safe_investment_home_inspections' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
- <!-- My attempt -->
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content">
- <?php if ( is_page() ) : ?>
- <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'safe_investment_home_inspections' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'safe_investment_home_inspections' ), 'after' => '</div>' ) ); ?>
- <div class="content-sidebar">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar2') ) : ?>
- <?php endif; ?>
- </div>
- <?php else : ?>
- <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'safe_investment_home_inspections' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'safe_investment_home_inspections' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement