This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Max character count on custom field

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Max character count on custom field

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35278
    FluxFlux
    Participant

    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,
    Dirk

    #35282
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Use the maxlength attribute:

    [{faq_antwoord maxlength=130}]

    That should do the trick 🙂

    #35297
    FluxFlux
    Participant

    Hi Ernest,

    Thanks for the follow up!

    Is there also an option to add ‘…’ after the max count?

    Looking forward to your reply!

    #35301
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome!

    Well, the only way to add the dots is by adding them to the field variable, like so:

    [{faq_antwoord maxlength=130}...]

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.