• Hi there, thank you for the plugin – as its so easy to use an well integrated we really enjoy using it.

    Our problem: the load-more link is recognized by the google search console. Therefore on every page we use the link (on every post we have a listing other posts and the read-more link) we got multiple additional urls that google is trying to index. Our indexing count explodes: we have round about 3000 Pages, but Google try to index 70000.

    So our solution would be, to be able to set an rel=”nofollow” on the link. I checked the code, there is currently no possibility to set any value on an rel-attribute. Nor did you have an filter-hook to modify the result. Is it possible to add some of that in the next release?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Volkmar Kantor

    (@volkmar-kantor)

    I just added the following code as a temporary fix of the problem, in case anybody needs a quick fix:


    /**
     * This optimizes the output of the "Read More" plugin's query pagination block.
     * It adds rel="nofollow" to the pagination links to avoid SEO issues with duplicate content.
     */
    add_filter('render_block', function($block_content, $block) {
        $allowed_blocks = [
            'core/query-pagination'
        ];
        if(!in_array($block['blockName'], $allowed_blocks)) return $block_content;
        $block_content = str_replace(' href="?query-', ' rel="nofollow" href="?query-', $block_content);
        return $block_content;
    }, 9999999, 2);
    Plugin Contributor Nate Allen

    (@nateallen)

    Thanks so much for the kind words and for flagging this. You’re absolutely right about the indexing behavior. We’re currently working on a fix that will allow adding a rel attribute (including nofollow) to the load-more link, either via a setting or filter. We’ll update the plugin as soon as it’s ready.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.