Posts in Page
[resolved] the_content not stopping at --more-- (5 posts)

  1. AbigailKM
    Posted 2 years ago #

    Hi there,

    I've been using your plugin for a while, and it's really great! I just have one niggling annoyance - and admittedly, it's not the end of the world, but if I could just get this last thing sorted, I'd be well happy.

    I'd like the first picture in the post to show (as on 'most recent' home), and I know that I achieve that by changing
    <?php the_excerpt(); ?> to <?php the_content(); ?>

    However, it is not stopping at the <!--more--> tag, but running in the whole post.

    Is there something else I need to be including to make sure it stops where it should? I'd settle for it just taking the first line of text, if stopping at --more-- is too tricky.

    Any help would be ace.


  2. Michael
    Forum Moderator
    Posted 2 years ago #

    please review

    you might need to edit the plugin's code accordingly.

  3. AbigailKM
    Posted 2 years ago #

    I love you so much right now!

    That is IT!

    Thank you very very very >werrywerrywerry< much.

    Done *\(^_^)/*

  4. Vaqu
    Posted 1 year ago #

    I have stupid question :D
    Where I must put the "<?php global $more;$more = 0;?>" ?

    I add
    but it still doesn't work.

    Sorry for my English.

  5. Patrick Jackson
    Plugin Author

    Posted 1 year ago #


    Try setting $more at the top of posts_loop_template. I don't think the_post() has been called yet in your example, but it should have been called by the time the template is loaded.

    As @alchymyth's codex reference states...

    The code must be inserted ahead of the call the_content, but AFTER the_post()

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts in Page
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic