The tag has no usage guidance.

learn more… | top users | synonyms

15
votes
1answer
4k views

If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?

I had a client who got hacked recently and I noticed that there were weird characters appearing on her site, like  and Æ. It turns out that the hackers changed the blog_charset to UTF-7 in the ...
6
votes
1answer
93 views

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter ('sanitize_user', 'hu_sanitize_user', 10, 3); //Overrides the Wordpress sanitize_user filter to allow ...
4
votes
1answer
52 views

(un)wptexturize() — is it possible?

I have some text stored in a string $text that's filtered through the_content and therefore, wptexturize(). wptexturize() is a function that replaces various characters into more prettier ones. Is ...
4
votes
2answers
3k views

Special characters in WordPress UTF-8 [closed]

I have a problem regarding special characters that are appearing messed up on the front-end . mainly the get converted to question marks, or something like �?) Example - Frédèric becomes Fr�d�ric. ...
3
votes
3answers
1k views

excerpt in characters

I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); ...
3
votes
1answer
3k views

Strange characters - despite everything being UTF-8

Not sure why this thread was closed, but this is the same issue inflicting many people. All my WP config settings are in order: //define('DB_CHARSET', 'utf8'); //define('DB_CHARSET', '...
2
votes
2answers
9k views

How can I stop TinyMCE from converting my HTML entities to characters?

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 ...
2
votes
1answer
3k views

Wordspress add <p> into my javascripts

I use a slider called revoslider and use it via shortcode. When i use the shortcode and do not use visual editor for insert and save, the slider does not work because WordPress adds <p> into ...
2
votes
2answers
744 views

How to stop WordPress from changing ellipsis into a pre-composed triple-dot glyph?

When I type an ellipsis composed of three separate dots ..., WordPress displays the pre-composed triple-dot glyph … instead. Is there any way to prevent WordPress from substitution the three dots?
2
votes
1answer
397 views

Adding “&nbsp;” before the last word in multiple defined areas with a plugin

How would this be done with javascript or a plugin? This would prevent widows from happening in my WordPress posts. Shaun Inman has created a similar plugin for post titles, but not for actual posts. ...
1
vote
1answer
4k views

Remove empty lines (&nbsp;) when author updates their post

Whenever adding an empty line between paragraphs using TinyMCE, the &nbsp; character entity is added. How can I strip the content of all instances of this character whenever an author updates ...
1
vote
3answers
2k views

Divide Post content into separate divs for every 500 characters (or any other character counts)

What is the best method for intercepting the_content of a post (for a single post page) and dividing the_content into sections of 500 characters (or any other number of characters), and then ...
1
vote
3answers
3k views

How to limit the max number of characteres in the title that are displayed

I am following this tutorial — "Display Your Popular Posts In WordPress Without A Plugin" and want to limit the max number of characters in the title that are displayed. Also, why is the thumbnail, at ...
1
vote
2answers
160 views

apply_filters/do_action tag characters limit

Does apply_filters/do_action $tag name have a characters limit? Can be any problems if the tag name is way too long? I ask this because I know that WP transients have a limit of 45 characters. FYI, ...
1
vote
1answer
1k views

Plugin To Insert Chinese Characters in Posts or Pages

My daughter is blogging from China. She wants to insert Chinese characters occasionally into her post so that she can explain what these mean. She has a Mac, which lets her type these quickly. When ...
1
vote
1answer
973 views

register_post_type name character limit

I need to create a new custom post type, but the issue i am having is that the name i want to give is longer than 20 characters. Is it possible to override this with a hook or filter? I tried to ...
1
vote
1answer
346 views

Truncating varying lengths of information

I was helped not long ago with a form of custom truncating by Toscho on this post it works very well but I'm finding that I need to create multiple length variations for different bits of content. For ...
1
vote
1answer
54 views

Character Encoding for wp_options

I've been looking for a solution to my problem for a while now. Under my wp_options page I have the following serialized entry saved: a:17:{s:11:"date_format";s:5:"d/m/Y";s:15:"currency_symbol";s:1:"...
1
vote
1answer
139 views

How can I stop wp_update_post messing up HTML example code?

I'm showing little pieces of example HTML/PHP code on the frontend (with syntax highlighting). The entries are displayed as FAQ custom posts, and have a plugin (CMS Tree page) to alter the menu order, ...
1
vote
1answer
401 views

Adding special characters to slug?

Is it possible to prevent WP from stripping out certain characters when customizing a URL? For example, affiliate ids usually have something like ?id=something. Customizing a content's slug with ...
1
vote
1answer
60 views

Migrated Wordpress site renders Chinese

So, I have no idea what happened, but I tried to migrate a WP site and for some odd reason, it just renders in all Chinese/Japanese. I've been working on this site locally, and it renders fine ...
1
vote
0answers
170 views

Symbols such as £ end up being  in the database

Any posts with symbols such as £ or & or ♥ end up being  or worse. It doesn't show in the admin panel on the edit post page, but it is saved in the database as  and shows on the actual live blog ...
1
vote
2answers
934 views

How do I remove weird characters in text?

Help, my site is suddenly populated with weird characters, like this: “Do what you love and do it often,†“If you don’t like your job, quit,†and “Travel often; Getting lost will help ...
0
votes
1answer
45 views

how to avoid the character conversion of WordPress pages?

I am trying to use the WordPress pages but WordPress is overwriting certain characters. the '>' character is turned into '& gt;' why is WordPress changing these characters? is it possible to ...
0
votes
1answer
526 views

Show ellipsis (…) only if the number of characters exceeds limit defined in substr

I'm limiting the number of characters in the title with substr. But even if the title is less than 50 characters, being shown the ellipsis (...). I would not display the ellipsis if the title does not ...
0
votes
1answer
127 views

Preg_Match(): compilation failed unknown property name

I'm having a problem with a wordpress theme I bought but their support is terrible. On every post page, I receive this error: Warning: preg_match(): Compilation failed: unknown property name after ...
0
votes
1answer
64 views

“page not found” due to hat character (“^”) in a upload file name

I have several uploaded files whose links I have later discovered yield a "page not found" message error, because their name contain the hat character ("^"). Have I to delete and re-upload them after ...
0
votes
1answer
14 views

Ampersand breaking Widget title

When adding an ampersand (&) to the Text Widget title, the title breaks at the ampersand position (frontend). So: 'me, myself & I' becomes: 'me, myself ' The ampersand is being stored (...
0
votes
1answer
36 views

Restrict characters in comment section

I am using Travelify theme and I am having some trouble restricting the characters in the comment section (textarea) or where the name or mail goes into the input tags. I read some articles about ...
0
votes
1answer
43 views

What's the Max character limit for a post in WordPress?

Very software out there has a limit for character but I haven't seen any such limit for a post in WordPress. So I need to know if there is actually a Max character limit for a post in WordPress or not?...
0
votes
1answer
115 views

Function to replace comment's accented characters before posting

I have some weird problems with encoding my Wordpress website and I can't add comments with accent words. when i try to do it, i received error by WP. What i need is just a function that read the ...
0
votes
1answer
297 views

limit characters when posting from form

I have a form were users can post question on my page and I would like to limit the characters in the description part of the form. It would also be a plus if I could get a word counter to work. The ...
0
votes
1answer
76 views

Unicode characters are saved in a funny way in the DB

I have a custom website in which I am using wp_insert_post() to manually create posts that have a title which has characters thare are non-English Unicode letters (Arabic to be more specific). The ...
0
votes
1answer
231 views

List first letter of categories - issue upon spcecial characters (danish letters)

I have a alphabetic list of custom taxonomies (Topics), all taxonomies are grouped by a index letter - A, B, C etc. The list uses the first letter of "Topic", to show as a index letter for each ...
0
votes
2answers
855 views

Search and replace special characters (å,ä,ö) for image attachments only in database

I need to replace the special characters å,ä,ö (with a or o) in my WP database for all image attachments. How can I apply this search and replace only to affect these links? Edit: Solved
0
votes
1answer
70 views

Toggle Shortcode Sanitize Title

Wondering if anyone can help me out... here is my custom theme shortcode: add_shortcode('toggle', 'shortcode_toggle'); function shortcode_toggle( $atts, $content = null ) { extract(shortcode_atts(...
0
votes
1answer
271 views

Fixed height of the_content()

I have page with news. I'm displaying them as a shortened text (300 chars limit), I'm removing any images using preg_replace() and everything looks fine, until someone uses line breaks in his post. ...
0
votes
1answer
466 views

Invalid characters in user name when registered

I can´t register a user with ñ (español) beacause is invalid character, (i know it) the questions are: are there any functions that allow that? is a server problem or a wordpress problem?
0
votes
1answer
1k views

Check & remove special characters in a field?

I would like to check whether a field has special characters, remove those characters and output (save) the value to another field. I am creating a user search function that search various fields, ...
0
votes
1answer
35 views

Limit the content entered by editor or admin in the WP admin editor window

I would like to get some help in Limiting the content entered by editor or admin in the WP admin editor window by words and based on the categories as well for example when posting in political ...
0
votes
1answer
47 views

Icons (non-Latin symbols) displaying incorrectly

This is regarding a Wordpress site, v4.4.2. The issue has been occurring for some months. It use to only occur on Firefox (no idea why). As of very recently it occurs on all browsers (I've checked ...
0
votes
1answer
24 views

Weird characters displayed when importing WordPress MySQL db

I was thinking that it may be the collation, but I have no way of know what the production db collation is. The local one has been changed between UTF8_bin and UTF8_general_ci, to no avail. I'm seeing ...
0
votes
0answers
130 views

Wpdb insert with special characters

I am facing a strange issue with insert query using $wpdb. I am trying to insert a record below (a row from a CSV file): Plenty Denim Leggings;http://nlyscandinavia.scene7.com/is/image/nlyscandinavia/...
0
votes
1answer
600 views

Why is converting my database to UTF-8 truncating entries?

I'm running WordPress 4.1.1. My site is hosted at NearlyFreeSpeech. I've been using my WordPress blog since the days when it encoded information in the latin1 charset. This week, I realized that ...
0
votes
1answer
429 views

How to prevent funny characters on Home Page

This is a challenge for the sharpest and most experienced WordPress specialists I am building a site in the WP Twenty Fifteen theme. I created a bare-bones minimum home page at http://bit.ly/1zlmpKS ...
0
votes
0answers
74 views

What is zinging my HTML commands? I don't think I can blame TinyMCE this time…

I'm creating some pretty involved websites where I insert the contents of a wordpress 'page' directly into a page display element. (example would be a custom entry in the footer...) Its absolutely ...
0
votes
0answers
170 views

Ampersands do not display

I've got a WooCommerce install, running on the latest WordPress version. I'm using the discover theme by antthemes.com. There are four boxes at the bottom of the homepage which allows you to change ...
0
votes
1answer
157 views

How to Disable UNICODE slug?

I am inserting the post titles in UNICODE, but i dont want to save in unicode UTF8 characters. Instead, i want to use my title convert function before slug auto-creation: like this: function ...
0
votes
0answers
116 views

Post removes any text from post that's following special characters

I have a weird problem with losing content in posts with special characters in it. Let's say I inserted the following content into a post: Hello, 👿 This is my post Wordpress would ...
0
votes
2answers
2k views

why some permalinks adding characters/ruining links

I am using a gallery to link to some sub categories. Some of the links within the category work exactly how they should. However there are a few that are adding strange characters on the end, I've re-...