Hide content above the "more" Tag (3 posts)

  1. katsune
    Posted 5 years ago #

    Now I could be mistaken but I believe I have done this before, I just can not remember how I did it.

    I was able to hide all the content on a page that was ABOVE the <!-- more --> Tag and only display the content below it.

    Now I know this will display all the content above the more tag but not the content below it.
    <?php global $more; $more = 0; the_content("Add a Comment"); ?>

    Is there a way to display ONLY the content BELOW the more tag?

    Thanks in advance! <3

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    have you studied:

    To remove the teaser:

    Change the_content(); in your index.php to (i.e., the second parameter controls this):
    the_content('',true,''); [edited]

    (in the codex, it says FALSE instead of true, but this seems to be wrong, looking into the docu of 'the_content()' http://codex.wordpress.org/Template_Tags/the_content)

    i tried
    in page.php and it only shows the part after the 'more tag' - no teaser.

  3. katsune
    Posted 5 years ago #

    Aha! No I did not come across this in the codex, I only found the_content part.

    Thanks a bunch! =)

Topic Closed

This topic has been closed to new replies.

About this Topic