Skip Navigation

[Resolved] Text limit code creates some bugs

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

Problem:

Using custom shortcode in AJAX pagination.

Solution:

It needs to use AJAX to get those additional results, if you are using Toolset custom codes snippets to setup the custom PHP codes, you can edit that snippet, and enable option "AJAX calls"

Relevant Documentation:

https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/

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

Assisted by: Luo Yang.

Author
Posts
#1708251

Tell us what you are trying to do?

Limit number of letter shows on the title and other field.

Is there any documentation that you are following?

https://toolset.com/forums/topic/limiting-field-length-to-display/

I modified the code and I was able to successfully put the limitation on letters. However, when the search result loads more(infinite scroll), the short code shows up instead of result. It is some kind of bug and could you tell or provide the code for me how to fix this.

You can see errors when you scroll down the page and wait till the additional result s show up.

What is the link to your site?

hidden link

#1708447
ajax-call.JPG

Hello,

I assume we are talking about Views infinite loop, it needs to use AJAX to get those additional results, if you are using Toolset custom codes snippets to setup the custom PHP codes, you can edit that snippet, and enable option "AJAX calls", see screenshot: ajax-call.JPG

More help:
https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/

#1710687

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.