-
I use Rank Math and BBPRESS and wish to understand if Rank math via PHP script can add the option to add <link rel=”next” href=”xxx” /> to my BBPRESS topic multiple pages.
i.e.
URL is https://uktechhub.com/forums/topic/asus-rt-ax86s-failover/
and for CANONICAL I have….
<link rel=”canonical” href=”https://uktechhub.com/forums/topic/asus-rt-ax86s-failover/” />I wish to know add a type of “next” quote to show the next page in the forum topic
<link rel=”next” href=”https://uktechhub.com/forums/topic/asus-rt-ax86s-failover/page/2″ />
-
The issue is that for some reason BING does not index multiple BBPRESS pages (Google does) and I wish to test to see if issue is <link rel=”next”>
Thanks
Hello,
Thank you for reaching out to support.
Rank Math automatically adds rel=”prev” and rel=”next” attributes to link tags on paginated pages. (Make sure you’ve turned on the bbPress module under “Advanced Mode” in the Rank Math dashboard.)
The exceptions are if:
1. You set
noindex
to the paginated pages
2. You enabled option Noindex Subpages or Noindex Paginated Single Pages (or both) at Rank Math > Titles & Meta > Misc PagesHowever, if the issue is still there, you may want to reach out to the bbPress support forum at: https://bbpress.org/forums/
If you require any additional support, please do not hesitate to let us know.
Thank you, I have checked the settings you have advised and they are set correctly.
Yes, an issue with BBPRESS but I was hoping a fix (PHP script) could be offered by Rank Math
Note: I already use a script from Rank math to resolve “BBPress pagination not used for canonical”
add_filter( ‘rank_math/frontend/canonical’, function( $canonical ) {
global $wp;
$current_slug = home_url( $wp->request );if ( is_paged()) {
$canonical = $current_slug . ‘/’;
}
return $canonical;
});FYI: as Rank Math’s forum is BBPRESS, take a look at the View Page Source for below page, this also does not have the “next” attribute even though this topic has 2 pages ?
view-source:https://support.rankmath.com/ticket/no-route-was-found-matching-the-url-and-request-method-3/
Hello,
Please try adding the following filter to see if that works for you.
add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_false' );
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Let us know how it goes. Looking forward to helping you.
Thank you.
Hi
Thanks for quick reply, I tried the above filter, but no “next” option appeared within the ‘Rank Math Search Engine Optimisation by Rank Math’ section under <link rel=”canonical” href
Not sure if this helps but BBPRESS does have its own ‘type’ of <div class=”bbp-pagination”> but it is much lower at line 753 and not near <link rel=”canonical” href
view-source:https://uktechhub.com/forums/topic/asus-zenwifi-pro-et12-official-thread/page/2/
Bump!
I use Rank Math and BBPRESS and wish to understand if Rank Math via a PHP script can add the option to add <link rel=”next” href=”xxx” /> and <link rel=”prev” href=”xxx” /> to my BBPRESS topic multiple pages within the Rank Math section of my page source.
https://uktechhub.com/forums/topic/asus-zenwifi-pro-et12-official-thread/page/2/
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I noticed someone with the account I created for the Rank Math support team logged in yesterday, can I ask, did you find anything interesting with respect to the issue I am having ?
Thanks
Hello,
We deeply apologize for the delay and confusion.
We have done a couple of checks on your website and ended up consulting our developers. It turns out that Rank Math only adds the
ref="next"
orref="prev"
in forum archives, not on single topic pages.We let bbpress handle the navigation markup.
Hope this clears any doubt.
Thank you.
Hi and thank you for taking the time to look at this issue.
BBPRESS does include a <div class=”bbp-pagination”> section for its navigation mark-up as mentioned above, but the code for this is very low in the page source compared to the main Rank Math attributes (Search Engine Optimisation by Rank Math – https://s.rankmath.com/home)
Is there any way to include the “bbp-pagination” (“Prev – Next”) attributes in the main Rank Math attributes as I feel this maybe why Search Engines such as Bing / Yahoo do not index BBPRESS subsequent Topic pages well apart from the first page, (Google works well with Rank Math)
Thanks.
FYI: forums using XenForo and other dedicated forums applications have a “next” and/or “prev” and their content is very searchable by BING etc.
If Rank Math could include the “next” and/or “prev” in the main Rank Math attributes taken from the <div class=”bbp-pagination”> this would be a good exercise to test and I am happy to try / test applications to see if this does indeed help SEO for BING ?
<link rel=”prev” href=”xxx/page/2/” />
<link rel=”next” href=”https://xxx/page/4/” />
<link rel=”last” href=”https://xxx/page/6/” />
<link rel=”canonical” href=”xxx/page/3/” />
Hello,
We apologize for the delay in response and thank you so much for sharing your feedback about this.
Allow me to share this with our developer again to see if this is something we can include for a single topic in bbpress.
We should get back to you shortly.
We appreciate your time and patience on this one.
Thank you
You must be logged in to reply to this ticket.