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
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.
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?
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.