Skip Navigation

[Resolved] Is it possible to do pagination using parameters?

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is it possible to do pagination using URL parameters?

Solution:

There isn't such kind of built-in feature within Toolset plugins, the pagination link of archive page is defined in your WordPress setting

Relevant Documentation:

This support ticket is created 3 years, 10 months ago. 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.

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/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by adrian-mihaiN 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2107323

Yes, that fixes the link. Thank you, the site is almost done.

Now to fully resolve this I need any page that is not page 1 in the archive to become noindex and nofollow.

I've noticed that every big site that does something similar paginates using parameters to easily implement this:

hidden link >>> hidden link

hidden link >>> hidden link

What is the way to do this in Toolset?

Is it possible to do pagination using parameters?

Simply adding <meta name="robots" content="noindex, nofollow" /> to Page 2 onwards will fix it.

Your Ajax automatic loading for pagination I see it also doesn't create pagination but it does automatic transition which is not good for my case.

#2107385

Unfortunately, there isn't such kind of built-in feature within Toolset plugins, the pagination link of archive page is defined in your WordPress setting:
Dashboard-> Settings-> Permalink, for example, option "Plain", it will change all permalink settings of your website to URL parameter based links.

More help:
https://wordpress.org/support/article/using-permalinks/

#2107403

I believe I found the solution on the RankMath forum but need help to customize it for Toolset.

Can you please help me customize this to:

if the taxonomy is Courses or Free Courses and page is 2 or higher make it noindex and nofollow. Make it follow and index for default first-page result that doesn't have pagination number added to it.

Thank you.

/**
* Allows filtering of the robots meta data.
*
* @param array $robots The meta robots directives.
*/
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(is_paged() && is_category()){
$robots['index'] = "index";
$robots['follow'] = "follow";
}
return $robots;
});

#2107413

I suggest you replace the is_category() function of the codes you mentioned above with another function is_tax(), for example, replace this line from:
if(is_paged() && is_category()){

With:
if(is_paged() && is_tax('courses')){

More help:
https://developer.wordpress.org/reference/functions/is_tax/
Determines whether the query is for an existing custom taxonomy archive page.

#2107487

It works, thanks.

#2107555

My issue is resolved now. Thank you!