Skip Navigation

[Resolved] View Block with Pagination Enabled only shows first custom post entry

This support ticket is created 3 years, 9 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 2 replies, has 2 voices.

Last updated by Kirk 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2020173

Hi support,

Not sure if this is a bug or simply something I have done wrong (or a conflict with some other code on the page).

I have a customer reviews view block that shows multiple posts from the reviews custom post type (or at least it used to).

The view on the homepage displays the latest post only then dies.

A copy of the view still works on the About Us page works fine.

I have deleted and re-created the view a couple of times now but the result stays the same unfortunately.

The page is hidden link

The page does have a Javascript error so that may be an indication of what is wrong, however, I have another paginated view on the page and that still works fine.

Uncaught (in promise) TypeError: Cannot read property 'querySelectorAll' of null
at s.<anonymous> (onloadwff.js:71)
at l (onloadwff.js:71)
at Object.next (onloadwff.js:71)
at n (onloadwff.js:71)

Any advice you can offer is greatly appreciated.

thanks
Kirk

#2020295

Hello,

Thanks for the details, I can see the problem in your website home page, and I have tried these:
1) Create a new page, add a new view block, with the same settings as yours:
hidden link
Test it in front-end, it works fine:
hidden link

2) Then add other two post view blocks in above same page, test it in front-end again, it works fine too, is there any missing steps to reproduce the same problem?

Please check if there is any PHP errors in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
section "PHP Debugging"

#2021607

My issue is resolved now. Thank you!