Truncating custom fields
I’m using custom fields to pull a secondary description. I’d like to use the built in WordPress truncate but can’t seem to figure it out.
I’m using custom fields to pull a secondary description. I’d like to use the built in WordPress truncate but can’t seem to figure it out.
Here’s the problem: I paste the HTML entity code for, let’s say, a service mark (℠) into the HTML view of the editor. As soon as I switch to the “visual” tab, my entity code is turned into an actual service mark character (I guess the corresponding UTF-8 character or something? I don’t know from character encodings…). I don’t want this–I want it to stay as the entity reference.
I am from Turkey and we have “şŞçÇğĞüÜöÖıİ” characters in our alphabet.
I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน