Max character count on custom field

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 Ernest Marcinko 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35278
    Flux
    Flux
    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

    Attachments:
    You must be logged in to view attached files.
    #35282
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #35297
    Flux
    Flux
    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 Marcinko
    Ernest 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}...]

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.