Forums

get_posts and <!--more--> tag not working. (2 posts)

  1. wyrd
    Member
    Posted 1 year ago #

    I'm using get_posts(); on a custom page (it's using a template page and marked as my home page).

    Unfortunately <!--more--> is not working.

    I've tried:
    - setup_postdata($post);
    - $wp_query->is_single = false; at the top of the file.
    - $wp_query->is_page = false; at the top of the file.

    So how do I get <!--more--> to work with my custom loop?

    Thanks.

  2. thecoup
    Member
    Posted 1 year ago #

    I've heard that adding $more=0; before the loop fixes this. But I haven't been able to get that to work. I'm also using get_posts(). Perhaps the more quicktag can't work with this function.

    http://wordpress.org/support/topic/159009?replies=7#post-762208

    http://wordpress.org/support/topic/151147

    http://wordpress.org/support/topic/123114?replies=8

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.