March 6, 2017 at 11:40
#154863
Participant
Hi there
I have been looking at the next page function and I have been trying to modify it so I will just get a button for next page that is something like “read the full story”.
COPY CODE
<?php if ( ! $is_single ) : // Only display Excerpts for Search ?>
<?php echo kleo_excerpt( 50 ); ?>
<p class="kleo-continue">
<a class="btn btn-default"
href="<?php the_permalink() ?>"><?php esc_html_e( 'Continue reading', 'kleo_framework' ); ?></a>
</p>
<?php else : ?>
<?php the_content( esc_html__( 'Continue reading <span class="meta-nav">→</span>', 'kleo_framework' ) ); ?>
<?php wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'kleo_framework' ),
'after' => '</div>',
) ); ?>
<?php endif; ?>
I am having issues when I use <!–nextpage–> that I get random tags for the page (see attached image), I don’t understand where they are coming from.
My questions i;, how do I modify the next page code since your theme is already handling it? I would like to have a button that splits up the page and makes it a second page. The continue reading in the example I gave above looks perfect but I don’t know how to call it.
Thanks