WordPress.org

Forums

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

  1. AbigailKM
    Member
    Posted 1 year 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.
    boo!

    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.

    http://wordpress.org/plugins/posts-in-page/

  2. Michael
    Forum Moderator
    Posted 1 year ago #

    please review
    http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

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

  3. AbigailKM
    Member
    Posted 1 year ago #

    ahhhhhhhhhh
    I love you so much right now!

    That is IT!
    Fantastic!

    Thank you very very very >werrywerrywerry< much.

    Done *\(^_^)/*

  4. Vaqu
    Member
    Posted 12 months ago #

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

    I add
    http://scr.hu/32fr/sd81b
    http://scr.hu/32fr/1ejpc
    but it still doesn't work.

    Sorry for my English.

  5. Patrick Jackson
    Member
    Plugin Author

    Posted 11 months ago #

    @Vaqu,

    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