WordPress.org

Ready to get started?Download WordPress

Forums

Using 'More' tag on a Static Page - problem (1 post)

  1. Paul
    Member
    Posted 7 months ago #

    Hi,

    I'm trying to enable using a the 'more' tag in a static page. I've read this can be an issue (as I've found it to be), and encountered some sites suggesting I add the following code to the 'loop':

    <?php
    global $more;
    $more = 0;
    ?>
    //The code must be inserted ahead of the call the_content, but AFTER the_post()
    
    <?php the_content('Continue Reading'); ?>

    There is no 'loop.php' in my theme (it's a child theme of superhero), but I think I'm supposed to use 'index.php' instead. Is that right?

    If so, at what point do I insert the code?

    Thanks in advance.

Reply

You must log in to post.

About this Topic