Support » Plugin: Custom Content Shortcode » Using the CCS format “split” attribute

  • iantresman

    (@iantresman)


    CCS [format split="-" part=1] lets me split a string at a specified character, and return the nth part (eg. parts of a date as described in the thread “Changing the date format“).

    1. Can I split a string at the nth specified character, counting from the end? ie. The “last” part?
    2. Can I split a string at the nth character? ie. the 2nd character, the last character? eg. From “abcdef”, split “bcdef”, or just “ef”
    • This topic was modified 1 month ago by iantresman.
Viewing 1 replies (of 1 total)
  • polarracing

    (@polarracing)

    1. No
    2. No

    The only way to split a string at the nth-character is [field my_field lenght=X]

    This does not work from the end.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.