Set Word Limit in CPT

This topic contains 6 replies, has 3 voices, and was last updated by  mb299 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #509977

    mb299
    Free User
    Post count: 147

    Hello..
    I am using WP Ver :5.2.3 & GD Ver :2.0.0.66

    Its a listing website using Supreme Directory theme. The plugins that i am using are Geo Directory, Ninja Forms, Code Snippets & Ultimate Member.

    While in CPT, I added a custom field Profile(textarea) & now i want to limit the word that a user can enter/write to maximum 240 words. I didn’t find a validation pattern though, inside the textarea custom field.

    Can this be achieved? Please do let me know.
    Thanks / Manish

    #509989

    Kor
    Moderator
    Post count: 16516

    Hi mb299,

    Thanks for your post. You can refer to this section of the documentation that explains more about this https://wpgeodirectory.com/docs-v2/places/custom/#validation

    #510021

    Alex Rollin
    Moderator
    Post count: 27815

    Validation applies to text fields.

    The main description field can have a character limit applied with the Pricing Manager addon

    https://wpgeodirectory.com/docs-v2/addons/pricing-manager/

    #510032

    mb299
    Free User
    Post count: 147

    Thanks Kor,
    I shall check this & see if it helps.

    Manish

    #510033

    mb299
    Free User
    Post count: 147

    Yes Alex, i checked that for the text field. I even tried it to use for description & put the code too .{0}|.{0,40} but it didnt work. Do you think it would work in my case if i replace 40 with 240? Please let me know.

    The only option i have is to play mind games with the users 😉 – Label description will now have – ” Enter max 240 words” 😉

    Thanks Alex.

    Manish

    #510035

    Alex Rollin
    Moderator
    Post count: 27815

    …Validation for text and phone fields.

    From https://wpgeodirectory.com/docs-v2/places/custom/#validation

    You will need the Pricing Manager addon to add a character limit to eh post_conten description field.

    #510082

    mb299
    Free User
    Post count: 147

    Sure Alex,

    I would study on Pricing Manager & find out what all it can do for me & then consider a purchase.

    Thank you so much.

    Manish

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket