Skip Navigation

[Resolved] Views print pagination

This support ticket is created 4 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
- 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 2 voices.

Last updated by JamesS2731 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1659219

Tell us what you are trying to do? Print a paginated list. I have found quite a few plugins that print the page, but none that print beyond page 1 of paginated results. Is there a way to do this? I'm wary of removing the pagination as, in some cases there's around 80 pages of output. I wondered if there were any settings I ca use in Views?

Is there any documentation that you are following? no

Is there a similar example that we can see? unfortunately not.

What is the link to your site?hidden link

I look forward to your thoughts.

Kind regards
James

#1660131

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean you want to print the list of records that is displayed on page using views and that view you added is with pagination and you want to print all pages ?

#1660141

Hi Minesh,

Many thanks for the qUick response.

Yes, exactly. The view results run to multiple pages and I’d like to print all of them.

Is there a way to do this?

Kind regards
James

#1660145

Minesh
Supporter

Languages: English (English )

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

I do not know what Tool/plugin/scrip you are using to print your pages but the thing is that there is no such native feature Toolset offers to print the results.

You will be able to move to next page when you click on specified page link. If you want to print all results, view offers PHP api you may use that to get all the results. I mean, you should have a view that return all the results without pagination.

To call that view, you can use the view PHP API function: get_view_query_results()
=> https://toolset.com/documentation/programmer-reference/views-api/#get_view_query_results

#1662399

Many thanks MInesh,

Yes, I understand that Toolset doesn't have a print function. Thank you for the query result link. I'll taken a look at that.

Kind regards
James

#1670925

Hi Minesh,

A quick question relating to this. Using the get_view_query_results(), is there a way to avoid overloading the site when producing a large amount of results?

We're displaying 2,000 or so car owners and keep running out of memory. I can keep increasing the memory, but wanted to see if there was a better way? breaking down the request into chunks, etc.

Kind Regards
James