Skip Navigation

[Résolu] Trying to generate rel=next and rel=prev with Toolset and Rank Math.

This support ticket is created Il y a 1 année. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Waqar Il y a 1 année.

Assisté par: Waqar.

Auteur
Publications
#2661243

I'm trying to ensure google indexes the pages on paginated views. Rankmath has functionality for this, but they are saying toolset views don't use the is_paged() function. Is there a way for toolset views to use the is_paged() function?

Thank You for your time.

#2661369

Hi,

Thank you for contacting us and I'd be happy to assist.

From the description, I understand that the RankMath SEO plugin uses the 'is_paged' function to detect the next/previous pages or posts.

But the case of views is unique, because, technically the pagination is not for the pages or posts where the view is placed on. It is for the views query that is loaded as the part of the page/post.

If your view is set to update the pagination results without AJAX, you can set it to use AJAX. This way, the page won't reload when pagination is used and you won't need the rel=next and rel=prev tags.

regards,
Waqar

#2661371

Thank You Waqar. I hope you are having a great day.

The page is using ajax for pagination already. The paginated pages of the view are not getting indexed since there is no adjacent link meta data generated by rankmath since toolset doesn't use is_paged function. Using ajax or full page reload, Google still needs the adjacent link meta data to index the paginated pages properly. Can toolset be configured to use is_paged function?

#2662059

Thanks for writing back.

I've performed some testing and research and I'm afraid, in the context of the Toolset views, the 'is_paged' function can't be leveraged.

That function is designed to work with the main WordPress query (i.e. which page or post is being viewed). But to show the list of posts, the views use a secondary query, within the page/post that they are used on.

Unfortunately, I can't think of any workaround or custom code approach, where it can be made to work.

#2662359

Thank You for looking into it. This is a huge issue for our project. If only the main page gets indexed our entire project is pointless. I find it hard to believe that toolset is ok with only the first page of any view getting indexed. There has to be a workaround.

#2662787

In the past, the idea to implement the rel=next and rel=prev tags for the views pagination was dropped because it would result in serious performance cost. Those tags were expected to be added in the head of the page, which would mean extra queries to detect the presence or existence of the next and previous pagination links.

Additionally, it turns out that Google no longer uses those tags either. Here is a note from Google's own article on this topic at:
lien caché

In the past, Google used <link rel="next" href="..."> and <link rel="prev" href="..."> to identify next page and previous page relationships. Google no longer uses these tags, although these links may still be used by other search engines.

As per this article, as long as your pagination links are accessible by the Googlebot, they should be covered for the indexing.

I hope this information helps and let me know if you have any follow-up questions.