[resolved] Separate the content in single post before and after more tag (4 posts)

  1. vicius
    Posted 4 years ago #

    can not find the solution how to separate the post content in single post. I would like to show separately the content which is available till <--more--> tag, then to add some extra code (featured images, adds...) and then to show the rest of the content which is available after <--more--> tag.
    Would appreciate any suggestions, thanks in advance..!

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    can be done by fully utilising all parameters of the_content() and by setting the $more variable accordingly;


    already asked and answered in this forum:

    for example, replace <?php the_content(); ?> single.php with the suggested code.

  3. vicius
    Posted 4 years ago #

    Thank you very much!
    Still didn't tested, but from the code it looks like it should work.

  4. vicius
    Posted 4 years ago #

    Works great, just if you don't insert More tag, then the <!--the area inbetween--> also won't be showm. But i can live with that. Thank you one more time!

Topic Closed

This topic has been closed to new replies.

About this Topic