Skip Navigation

[Resolved] replace Arabic comma

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Beda 5 years, 8 months ago.

Assisted by: Beda.

Author
Posts
#1242546

Hi I have the following code

<ul style="direction: rtl; margin-right: 50px;" class="lst-style">

  • [wpv-post-taxonomy type='arabic-name' format='name' separator='
  • ']
  • If I understand correctly each comma in arabic-name field will be replaced by
    [CODE]

  • [/CODE]
    My problem is this field contains Arabic commas - "،", so how would I replace them with
  • [CODE]
  • [/CODE]
    to produce a list of Arabic names?

    Sorry /li li pairs missing inside CODE /CODE don't know why!

    Thanks for your help
    David

  • #1242547

    This does not remove commas or recognize commas, instead, it outputs your field (which is a repeating field) instead of comma-separated, "custom HTML" separated.

    That means, Toolset will output this field's instances with exactly the HTML you have set in the separator attribute, no matter if the original Comma would be an Arabic or Latin comma or even a totally different HTML.
    The attribute is there to exactly overwrite that standard and hence, will work no matter the language.

    #1242548

    Changing status.

    #1242549

    Thanks Beda,
    The "separator attribute" you mention is the Windows system specified separator? Is there code to replace the Arabic comma with a Latin comma?

    #1242551

    I am not sure what a "Windows system specified separator" is, however, the separator of the repeating field, as shown above, does not replace Arabic or Latin commas, it defines instead the separator HTML used to separate single items in a repeating field.

    Toolset has no code to replace characters on the fly, such as Arabic Commas to Latin ones, for example.