Support » Fixing WordPress » Splitting content with quicktag

  • 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);

    $pages = explode('&amplt;!-- nextpage --&ampgt;', $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 on it since two days with no luck.


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

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

    Something in your theme is stopping these template tags from being parsed. I can only suggest that you start by reviewing Theme Development and removing all non-standard code from your theme’s templates files and its functions.php file.

    Thanks for quick reply. I’ve already went through all files and can’t find any reason. In functions.php there is no function which overrides or stripes or filters the content. I’m using only standard wp functions and tags (all with Codex in my hands). Could You please point me where to look? What can make <!–nextpage–> tag unrecognizable? I’ve also switched to Twentyeleven theme and there is exactly the same problem.



    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Splitting content with quicktag’ is closed to new replies.