• In order to keep my homepage clean I use a more tag on posts. But I want the more tag to be ignored on the first post of the first page. I tried asking for help in the forums of my framework developer, but that didn’t really work as there answers implied using excerpts and build-in grids.

    I do not want to use excerpts, it is necessary for me to use more tags. Following this thread: https://www.ads-software.com/support/topic/can-wp-ignore-lt-more-gt-tag-on-most-recent-post?replies=12 I’ve managed to come a little end, but when I use their advice, and add

    global $more;
    if($post == $posts[0]) $more = 0;
    else $more = 1;
    the_content();

    before the loop, nothing happens.

    When I change $post[0] to [1], thus having

    global $more;
    if($post == $posts[1]) $more = 0;
    else $more = 1;
    the_content();

    ALL the posts ignore the More Tag I’ve given them. This is also the case when I change [1] to [2], [3], or whatever. It seems there is a problem with the $post identifier. Any ideas?

    So, the ignoring-of-the-more-tag-part works. Now for the making-sure-it-only-applies-to-the-first-post-of-the-first-page-part.

    Any ideas?

    page in question: https://www.acupoflife.nl

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ignoring the more tag on the first post of the first page’ is closed to new replies.