Why nextpage is not recognized by query.php?

  • Unknown's avatar

    Hi,
    I’m developing new WP theme.
    I would like to split one post into parts. I put some <!–nextpage–> tags into a post content and use wp_link_pages(); just after the_content() tag in my single.php.
    But the content isn’t splitted into pages, the <!–nextpage–> tag is displayed in the content as normal text. When I open query.php file and change:

    $pages = explode(<!– nextpage –>’, $content);

    into:
    $pages = explode(‘<!– nextpage –>’, $content);

    all is working like a charm.

    All plugins are disabled. I haven’t any custom content filters aplied.
    Version 3.4.2

    Please help me with this issue as I’m struggling with it since two days with no luck.

    Thanks.

    PS. The same issue is with <!–more–> tag.
    Blog url:

  • Unknown's avatar

    Hi,
    In my previous post “lt” and “gt” symbols has been changed automaticaly into < and > when I have submited the post. I’m sure You all know what I mean: (there should be ~<~ and ~>~ instead of “<” and “>”) in line below word “into”.

    It should be:

    into:
    $pages = explode(‘&less_then!– nextpage –&greater_then’, $content);

  • Unknown's avatar

    Wrong forum. You need to be at wordpress.ORG instead.

  • Unknown's avatar
  • The topic ‘Why nextpage is not recognized by query.php?’ is closed to new replies.