Questions tagged [characters]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
2answers
6k 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
425 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 ...
5
votes
1answer
8k 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 ...
5
votes
2answers
8k 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. ...
4
votes
4answers
20k 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', '...
4
votes
2answers
12k 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 (&#8480;) into the HTML view of the editor. As soon as I switch to the "visual" tab, my entity code is turned into ...
4
votes
4answers
4k 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
4k views

How to Add Customizer Setting in Child Theme

I would like to add an option to the Customizer of my Child Theme, but I am having some trouble implementing it. I am pretty sure my problem is connected to the name of the arguments I am calling, but ...
3
votes
1answer
274 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 ...
2
votes
2answers
8k 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 ...
2
votes
5answers
1k 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
543 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. ...
2
votes
1answer
454 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:"...
2
votes
1answer
434 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
3answers
3k 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
7k 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
1answer
34 views

CPT Post Title Permalink: Replace “@” (or all special characters) with dash “-” instead of just removing

I have Custom Post Type "Email", where the Post Title is always going to be an email address, ie: example@domain.com The problem I am having is the "@" is being removed in the permalink: ../...
1
vote
2answers
494 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
929 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 ...
1
vote
2answers
2k 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
1
vote
1answer
2k 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
60 views

Hebrew Characters Have gone bad

I have read this question: I have tried the following: ALTER database mydbname CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER table ext_hebrewText CHARACTER SET utf8 COLLATE utf8_general_ci; ...
1
vote
1answer
969 views

Arabic Characters in URL returns 404 Error

I have Arabic Characters in my URLs of my site. After setup my new VPS with LAMP and importing my local site into it, my Arabic URLs return 404 error and show me none-scene characters like below: ...
1
vote
1answer
394 views

RewriteRule accepts numbers but not letters in tag

RewriteRule only works with numbers I currently try to get the link example.com/subdir/StackExchange/ to act as a link with e.g. an additional website tag: example.com/subdir?website=...
1
vote
1answer
1k 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
4answers
7k 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-...
1
vote
1answer
3k 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
383 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
2k views

WordPress turns HTML code to HTML entities

I created a new wordpress page and added this into the Text tab (NOT the visual tab. The visual tab is disabled): <div></div> When I click Publish, the code turns into this: &lt;...
1
vote
0answers
270 views

Is there any way to use google input tool or any other language keyboard with WordPress [closed]

I want to type word in English and it should be appear in other language like Google Input Tool do (actually want to type English and need to convert word in to Sinhala). Is there any plugin or any ...
1
vote
0answers
1k views

Change/Replace keyboard character on keypress while writing new post

Before opening this thread in here, I was searching all the day today a way to change/replace 2 keyboard keys when writing a new post on wordpress. What I need is, when an editor/admin press [ on the ...
1
vote
0answers
198 views

Adding character count and limit in comments, modifying labels and fields - jetpack

I am trying to configure Jetpack comments as following: I want to change the labels on the comment fields, but I have no idea where to find the code and edit the tags (they are also translated so I ...
1
vote
1answer
66 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
295 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
4answers
4k 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 you ...
1
vote
1answer
32 views

WordPress update messed special characters

I updated WordPress core to the latest version and the result was less than perfect. All special font characters got messed up (site language is Polish) and it happened inside the admin panel too. I, ...
0
votes
1answer
56 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
2k 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
610 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
115 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
154 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
1k 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
83 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
5k 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
185 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
145 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
502 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
1answer
104 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
3k views

Set minimum number of characters in the search

I would like to establish a minimum number of characters in the search. On sites that have many entries, spammers tend to type very short terms as "a" or "of", and the server collapses while trying to ...
0
votes
1answer
311 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. ...