• Resolved berkmh

    (@berkmh)


    the plugin is creating a rel=next tag on my woocommerce shop main page where there are no other pages. how can I remove it from that page? Have verified by disabling plugin it goes away. please advise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter berkmh

    (@berkmh)

    disabling “Add rel link tags to archives?” removes it but it also removes from product category pages where I want them…

    Thread Starter berkmh

    (@berkmh)

    and sorry I meant deleting not *creating

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello, thank you for reaching out with a bug report.

    It seems WooCommerce sets the query incorrectly for the shop page: Even when only displaying one category, WP_Query still fetches all posts and sets $numpages and $paged as if it’s displaying products. This is a bug in WooCommerce. They are already aware of this bug for a couple of years: https://github.com/woocommerce/woocommerce/issues/24001.

    If you go to “WP Admin -> Appearance -> Customize -> WooCommerce -> Product Catalog”, set ‘Products per row’ and ‘Rows per page’ high. This change will affect your site’s performance negatively because of the bug aforementioned, but it will “fix” the pagination link.

    I recommend ignoring the issue entirely and not changing anything in Customizer. The link will not affect SEO, and the benefit of having it is debatable. You can safely disable the link relationship feature if you’d like; Google states they don’t use it (they actually do, but don’t process the links as intended).

    I’m afraid there’s nothing much we can do but wait for WooCommerce to address the issue. Therefore, I’m marking this topic as “resolved.”

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

The topic ‘Creating a rel=next tag on page with no pagination’ is closed to new replies.