The tag has no wiki summary.

learn more… | top users | synonyms

12
votes
6answers
10k views

Extra TinyMCE editor strips <p> and <br> tags?

Hey guys, I've added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> ...
12
votes
2answers
676 views

Switch between Visual and HTML tab freely

So this question has been raised many times under different flags, however I'd like to present a unified thread for an ultimate solution to this issue. In WordPress, by default, when switching back ...
2
votes
3answers
4k views

Stop editor from removing <p> tags and replacing them with nbsp

When I enter content in posts/pages' WYSIWYG editor, I do not get <p> when ending paragraphs, just &nbsps. If I manually place <p></p> in the HTML mode, they are stripped as ...
2
votes
1answer
2k views

How to include line-breaks in the_excerpt?

how can I include a line-break inside the_excerpt. I’ve modified the length and the more-button via my functions.php. I’m using teaser for every blog-entry and sometimes it looks a bit ugly, that ...
1
vote
3answers
1k views

Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor

Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
1
vote
1answer
1k views

How to prevent pages from automatically adding line breaks?

I'm trying to style a form on a website, but I'm hitting a snag. Wordpress is automatically generating <br> tags when I directly edit the HTML for pages. What I've got is this: ...
1
vote
1answer
50 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
1answer
157 views

Unwanted line break before <input>

Based on help here ( Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template. But, I still can't figure out why WP inserts breaks where it does. ...
1
vote
1answer
5k views

How to enable the <br /> tag in Wordpress posts and pages

i can't understand why so simple feature are disabled by Wordpress Team. I want have line breaking with "br" tag. On one wordpress forum was idea to modificate editor.js (in wp-admin/js) and ...
1
vote
1answer
531 views

Shift-Enter in tinyMCE (wp 3.3.1) not working

With wordpress version 3.3.1, shift-enter to insert linebreaks in pages and posts is not working anymore. Has anybody observed this as well? Is there a fix for that? Thanks!
1
vote
1answer
164 views

br tags on backend not showing up on frontend

I was really searching here for a solution for this but I couldn't find anything. Problem: br and/or br / tags which I put into my content on the backend were just not showing up on the frontend. No ...
1
vote
1answer
125 views

Processing shortcodes in groups (separated by line breaks)?

The Project I'm working on a plugin to resize and embed rows of images using shortcodes that will be converted into <img> tags. In most cases there will be multiple images per row, and the ...
1
vote
0answers
187 views

How can I remove <br /> line breaks from manually formatted HTML?

I see a lot of posts here and elsewhere having trouble adding line breaks for some reason, but I'm trying to remove them. I'm new to WP, and I see that when editing in "HTML" mode the text is rendered ...
1
vote
2answers
1k views

line break are not working when editing a post [closed]

So I have a problem when making a post. If I press enter and make a new line in the editor and press safe the line break diapers. But when I show the post it have inserted a line break. So somehow the ...
1
vote
1answer
364 views

Pasting code into WordPress post - LFs being eaten

I'm sure this is an inappropriate question for this SE because it's not programming related AFAIK but maybe someone here has an idea. I've been posting code into my blog for years and have had no ...
0
votes
2answers
842 views

How to add line breaks inside Gallery Captions

I am using this excellent piece of code to insert a line break in single image captions by way of inserting a pipe character... Now I would like your help to try to incorporate this into the gallery ...
0
votes
1answer
385 views

How can I force the Wordpress visual editor to preserve the line breaks after paragraphs?

If I write and put a line break, it make the paragraph tags appropriately, but on this one page the line breaks aren't there: http://jacksongariety.com/gundoglabs/jobs
0
votes
1answer
19 views

Wordpress post text starts newline after 93 characters

When typing the text of a new post, my text stops halfway the textarea and starts on a new line again. There are no linebreaks after a cut-ff sentence. When I type a single line of characters the ...
0
votes
0answers
55 views

Line break issues with textarea in admin for Attachments

I am not sure if this is an issue with Wordpress, PHP or the Attachments Plugin. I am using the Attachments plugin to save attachments to a post with some meta information. One of which is a caption ...
0
votes
0answers
164 views

Line break - ever-confusing in new editor

I can see this issue has been discussed at length but I'm still struggling to find a solution. I'm trying to get reasonable spacing between paragraphs Between first two paragraphs, I'm using one line ...
0
votes
1answer
118 views

Wrap Meta Box with <li> and </li> for each new line

I'm trying to automate one of our posting aspects. We post a lot of lyrics and have a system of meta boxes which we use to input various pieces of information about each set of lyrics we post. One ...
0
votes
4answers
1k views

Preserving line breaks when saving and displaying custom fields data

I'm collecting data via a form plugin and save that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template via <?php ...
-1
votes
1answer
33 views

Disabled visual editor and Wordpress keeps adding line-breaks to my code

I've disabled visual editor, so this can't be an issue with switching between the two different editors as I've seen in many questions related to this same issue. I'm pasting code into the page like: ...