cara menambahkan readmore pada tema
-
Gimana cara menambahkan button readmore atau selengkapnya karena tema yang saya buta menampilkan semua isi artikel pada halam utama
kode pada content.php<div class="row"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="col-lg-3"> <a href="<?php the_permalink(); ?>"> <?php if (has_post_thumbnail()) : the_post_thumbnail('thumbnail', array( 'class' => 'img-responsive' )); else: ?> <img width="150" height="150" src="<?php echo get_stylesheet_directory_uri()."/assets/images/dthumb.png"; ?>" class="img-responsive"> <?php endif; ?> </a> </div> <div class="col-lg-9"> <header class="entry-header"> <h4 class="entry-title"><b><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></b></h4> <?php if ('post' == get_post_type()) { ?> <div class="entry-meta"> <i class="fa fa-clock-o"></i> <?php the_time('F jS, Y'); ?> <i class="fa fa-user"></i> <?php the_author(); ?> </div><!-- .entry-meta --> <?php } //endif; ?> </header><!-- .entry-header --> <?php if (is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> <div class="clearfix"></div> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Contine reading <span class="meta-nav">→</span>', 'inyong' ) ); ?> <div class="clearfix"></div> <?php wp_link_pages(array( 'before' => '<div class="page-links">' . __('Pages:', 'inyong') . ' <ul class="pagination">', 'after' => '</ul></div>', 'separator' => '' )); ?> </div><!-- .entry-content --> <?php endif; ?> </div> </article> </div>
- Topik ‘cara menambahkan readmore pada tema’ tertutup untuk balasan baru.