Skip Navigation

[Waiting for user confirmation] Pagination split shows only 2 records

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 1 voice.

Last updated by Minesh 4 hours, 22 minutes ago.

Assisted by: Minesh.

Author
Posts
#2827516

Hello,

I have a view displaying parents ans their children. Over 1000 children and 400 parents.

Because there is so many entries, it's quite long before the result appears.

So I decided to split the result with pagination.

The error is the following:
• When the view is setup to display 10 items/page, it displays only 2 results.
• When the view is setup to display 50 items/page, it displays only 6 results.

I tried many options (Pagination enabled with manual transition and page reload, Pagination enabled with manual transition and AJAX, Pagination enabled with automatic AJAX transition) and their options with no more luck.

Any idea?

The web page with the view is there: hidden link

Thx

#2827608

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - the pagination will work for the post type you set your view to query.

Can you please sharre admin acess details and tell me what view you are using to display your parent/child posts.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2828030

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see the issue on your site.

In order to minimize the cause of the isseue and to ensure there is no conflict with the theme or plugins you use.

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?
- Do you see it working with the default 2021 theme?

#2828125

Hello Minesh,

It does the exact same thing with no other plugin (except Classic Editor - I hate Blocks).

With a native WP theme (Twenty Twenty-Five) the view just doesn't show.

Same with clean Astra.

The view shows up only with my theme (child of Astra), even if I remove all custom css. Really weird.

I made a page with only the view, no other shortcode: hidden link

You can take a look, I keep the plugins deactivated.

Thx for all!

#2828189

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can I have a staging site that should be 1:1 copy of your current production/live site?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2828337

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing that and when I checked big deeper.

I found that the issue is not pagination here but the conditional statement you added to your view's loop. With the following view, I see you added the following conditional statement within view's Loop Editor section.
=> hidden link

 [wpv-conditional if="( '[has_matching_final post_id="[wpv-post-id]"]' eq '1' )"]

So actually, when above codition does not match it hides the post from your view's loop. So for instance, you have set pagination to display 10 items per page but only 2 records statisies the above condition so it will display only two records and hide other eight records.

I'm not sure that what exactly you are checking with above condtionlal statement and where you added that custom shotcode.