Support » Themes and Templates » More tag isn't working

  • Resolved DJD_79


    Hello ya’ll.

    I’ve tried it over and over again, in different php files, used this forum, the search button, Google, but it just won’t work.

    For my website I use the theme Esther. In this theme the more tag isn’t working, but sometimes I just miss this function. I also use the plug-in inline posts but I’m not sure if this is giving extra problems.

    Can somebody give a little help?

    Gr. Dennis, who is now going to bed, otherwise the PC is
    having a crash-core in flying, from six meters high…

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi


    Forum Moderator

    Do the theme template files use the_content() or the_excerpt()?

    Hmm, maybe mention my website is a good idea.

    I’ll look this evening what the template files use, thanks.

    Okay, from the index file:

    <div id=”content” class=”narrowcolumn”>

    and later

    <div class=”entry”><?php the_content(‘Read the rest of this entry »’); ?></div>

    Hmmm, I’ve tried another thing:

    More does work on pages, but doesn’t in posts…



    Forum Moderator

    How exactly are you adding the more tag? The code you’ve given for index.php should work with the more tag.

    The code is working, but only for pages. Every blog on my site is a post and in a post it isn’t working. Maybe a different php file?

    Inserting the code:
    Opening the php in Dreamweaver
    Adding this code by replacing the original:

    <?php global $more; $more = FALSE; ?>
    <?php the_content('Read the rest of this entry »'); ?>
    <?php $more = TRUE; ?>

    Upload the php with Filezilla
    Replace/overwite the original

    Gr. D



    Forum Moderator

    Why are you adding that code?

    ‘Cause it wasn’t there.

    From a search (GIYBF)I came up with this solution, but it isn’t a 100% solution. But why, is this the wrong one? For pages it works fine, but posts not…




    Forum Moderator

    The correct code for Pages only is:

    <?php global $more; $more = 0; ?>
    <?php the_content('Read the rest of this entry »'); ?>

    It will not work for posts.

    How exactly are you adding the more tag?

    I am trying to get the more tag to work on pages as well and am writing about it here: . I have added code that now does show the read more tag, but it does not lead to the same page with all text

    global $more;
    $more = FALSE;
    <?php the_content("Lees de rest van deze pagina »"); ?>
    <?php $more = true; ?>

    On a page I’m adding the more tag with the WYSIWYG editor.
    That works just fine, but in a post it isn’t possible? Not at all?

    I will correct the php code esmi, thx.

    Thanks all, I’ve found another way…
    Using a new php file just for my blog now.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘More tag isn't working’ is closed to new replies.