Need help? Check out our Support site, then

post/page Pagination bug

  1. Hello,

    I found some strange behavior of WP using posts/pages pagination (using quick tag [code]<!--next-->[/code] inside content), whet I was testing qTranslate plugin.

    So i found, that if WP uses qTranslate plugin it can't use pagination for posts/pages (inside single page), because core script wp-includes/query.php is nott using content filter for content pagination. Problem is that qTranslate plugin is using filter for content: every post/page is written in multiple language.

    Everything works just fine, when posts/pages are in the posts loop but in single post/page content is not filtered.

    I do not know what is politics about aditional hooks, but maybe it is possible add one more hook for that purpose or just add my code, that i suggested.

    So i found solution for that problem:

    file wp-includes/query.php

    Instead of this code:

    $content = $post->post_content;

    if ( strpos( $content, '<!--nextpage-->' ) ) {

    we should use this one:

    $content = $post->post_content;

    $content = apply_filters('the_content', $post->post_content);

    if ( strpos( $content, '<!--nextpage-->' ) ) {

    This code adds aditional filter for content, couse all the content that is being used for post/page is not filtered for pagination and i thin for myselft, that it is bug/feature, that should be considered for reviewing.

    Thank you for your attention and feel free to contact for more details.

  2. You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you'll find help at the forums.

    If you don't understand the difference between and, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

Topic Closed

This topic has been closed to new replies.

About this Topic