Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Max character count on custom field
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 4 months ago.
- AuthorPosts
- October 22, 2021 at 1:29 pm #35278
Dear agent,
I just renewed the support for this question. I really hope you can help me with this.
I want to have a max character count on a custom field. As you can see in the screenshot or via site URL you see that some results show full text.
I’m using it as following; Advanced options > Content & Fields > Advanced Description Field:
[{descriptionfield}] [{faq_antwoord}][{download_beschrijving}]I was hoping I could use it something like [{faq_antwoord max-character=”32″}]
I hope this makes sense and hope you can help me to fix this.
Looking forward to your reply!
Kind regards,
DirkAttachments:
You must be logged in to view attached files.October 22, 2021 at 2:01 pm #35282Hi,
Use the maxlength attribute:
[{faq_antwoord maxlength=130}]
That should do the trick 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 25, 2021 at 7:37 am #35297Hi Ernest,
Thanks for the follow up!
Is there also an option to add ‘…’ after the max count?
Looking forward to your reply!
October 25, 2021 at 9:10 am #35301You are welcome!
Well, the only way to add the dots is by adding them to the field variable, like so:
Best,[{faq_antwoord maxlength=130}...]
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.