Changes double line-breaks in the text into HTML paragraphs (`...`). WordPress uses it to filter a posts content and its excerpt per default. This function can be used for autocorrecting any HTML saved to the database (or just displayed). Keep in mind that in the background it is using a time ...

learn more… | top users | synonyms

5
votes
1answer
642 views

How to enable wpautop for XMLRPC content

I'm using Wordpress XMLRPC support. The content fetched through an XMLRPC client does not have the automatically added <p> tags, whereas pages rendered on the blog of the Wordpress install ...
5
votes
4answers
3k views

No filter of code on switch from html to visual editor, how?

Yes, i have found other questions to this topic, but no have the same topic exactly and no solution for my problem. If you include code inside the html-tab and you switch to the visual mode, then ...
1
vote
1answer
469 views

WYSIWYG eating up first p in td

Basically going mad on this one. Been googling about for quite some time now to find an answer. Most hits are on year old posts. I tried to alter how TinyMCE initiates with "remove_linebreaks" set to ...
0
votes
2answers
532 views

TinyMCE - no auto formatting using the_editor()?

I'm embedding the_editor on a admin page: <?php the_editor(get_option('options_name'),'options_name'); ?> And everything works fine, at least in back-end: BUT on the front-end side I'm ...
-1
votes
1answer
91 views

Stripping wp_link_pages?

I can't figure out for the life of me how to strip the following code of the <p> tag. Even adding the remove code for wpautop in my functions won't do it. <?php ...
1
vote
0answers
143 views

include a post unrendered into a post, then render the whole thing [closed]

With a few extra lines in my functions.php I've created a shortcode that lets me include the content of a post: function include_content( $atts ) { $id = (int) $atts['id']; if ( ! $post = ...
0
votes
2answers
514 views

Possible to disable autop temporarily?

If I disable autop entirely, I need to add <p> everywhere I want a paragraph. Is it possibe to disable autop temporarily? Like in a shortcode
0
votes
1answer
665 views

WordPress wpautop/shortcode generating invalid markup

I notice that theres invalid markup in my shortcode. Its ok if I disable wpautop tho function shortcode_banner($attrs, $content = '') { echo ' --- ' . $content . ' --- '; $html = '<section ...
2
votes
3answers
2k views

Creating a table from shortcode avoiding wpautop for each row

I'm probably doing this all wrong, and there'll be a much simpler solution. Basically, I'm trying to build a table of tour dates that'll be editable by someone with little technical knowledge, but can ...
3
votes
2answers
3k views

Add filter 'wpautop' to meta box textarea

I'm using -this tutorial- to add simple meta boxes to a custom post type. But the textarea meta boxes are spitting out content all as one big paragraph, with no <p> formatting applied. What ...
0
votes
1answer
371 views

Formatting <code>?

I have serious trouble displaying code blocks in my theme. I want to display something like: <something> <something-else> Content </something-else> ...
20
votes
7answers
30k views

remove empty paragraphs from the_content?

Hey guys, I simply want to prevent the creation of empty paragraphs in my wordpress post. That happens quite often when trying to manually space content. I don't know why this doesn't take effect? ...
2
votes
4answers
1k views

Is there un-wp_autop function?

I have a problem with WP that need your help. Some of my posts have content that was applied "wp_autop" filters already. This filter turned all double break lines into <p> tag. I want to the ...