Archived topic
read more button for static home page
1 reply · Started by _blank on June 6, 2017
I have a Static front page into which I am able to 'insert a read more tag'. The ----- More --- shows up in the editor but it does not show up in the published page.
I understand that the read more tag in wordpress is essentially for posts and I found some php code that might resolve this but I can't figure out where to put it. I have Code Snippets but the comment in the code is confusing to me. Can you help?
Thanks
Code:
<?php
2 global $more;
3 $more = 0;
4 ?>
5 //The code must be inserted ahead of the call to the content
6
7 <?php the_content('Continue Reading'); ?>
For static pages, you would need to use <!--nextpage-->
That will essentially split your static pages into multiple pages.