The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
5 views

Disable wpautop from individual output of metabox

This is my code: <?php $desc = rwmb_meta('_tb_herocontent_wysiwyg'); remove_filter ($desc, 'wpautop'); echo $desc; ?> But I'm still receiving the <p> tags, any help would be greatly ...
0
votes
1answer
490 views

Wpautop stops working after get_the_excerpt

function pre_process_shortcode($content){ global $shortcode_tags, $shortcodes; // Backup current registered shortcodes and clear them all out ...
0
votes
3answers
300 views

Wordpress stripping out BR tags, need assistance

Im having a problem where WP for some odd reason is stripping out my BR tags. Ive looked online and have read a few solutions that people offered including the installation of TinyMCE advanced plugin ...
0
votes
1answer
810 views

Replacing &#038; in JS code on pages

I am needing to remove the &#038; that seems to be replacing my & on my page code. My original code looked like this: ...
0
votes
0answers
37 views

WP Auto-p adding unwanted <br> tag before <address> block

This is not a question on how to disable wpautop or remove its <br> insertion; just its behaviour in this specific circumstance. I have a bit of html that displays a fontawesome list with icons ...
0
votes
0answers
20 views

Cannot disable wpauto

I have tried everything to disable something adding multiple paragraph and break tags (up to 20 in a row) tags to a registration form. I first went into the event espresso files for this plugin and ...
0
votes
0answers
50 views

wpautop and br in avada fusion builder editor

there is a visual editor in avada fusion builder element. I want the following behaviour: Stop to remove my br tags Stop to add the p tag around my text content The wpautop plugin don't work. ...
0
votes
1answer
915 views

Wordpress remove filter wpautop not working

i have a trouble. I tried to use too many plugins and funciont and also remove_filter( 'the_content', 'wpautop' ); but it is not working. I've added a shortcode into a text widget but wordpress ...
1
vote
1answer
2k views

Disable wpautop, keep line breaks

How can I disable automatic paragraph tags, but retain line breaks? I have used this to remove wpautop: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); But ...
0
votes
1answer
99 views

Is it a good practice to disable wpautop for premium themes?

I am Developing a WordPress Theme which have some shortcodes to display content. The problem I am having is, extra p elements are being added within shortcodes. I can disable wpautop with filter, ...
0
votes
2answers
258 views

Is shortcode_unautop() broken?

shortcode_unautop() in /wp-includes/formatting.php is supposed to find shortcodes in a block of text and remove wrapping paragraph tags from them. I've been having issues with paragraph tags making ...
0
votes
2answers
1k views

Remove p tags in wordpress posts

WORDPRESS VERSION: 3.8.1 PHP version: 5.3 I have a trouble with wordpress posts. How can I remove the auto P tags added? This is my final html code: <div class="one_half_style_4_last"> ...
0
votes
1answer
136 views

<p> tag breaks shortcode output (other solutions don't work)

I just encountered weird problem. My shortcode output which is something like '<span class="link_container"><a href="#">'.$content.'</a></span> <div ...
1
vote
1answer
2k views

How to remove p tags around img and iframe tags in the acf wysiwyg field

I am querying an advanced custom fields wysiwyg field. Problem is in the output wordpress wraps occasional imgs and iframes with p tags no matter what i try. Deactivate the wpautop works remove_filter ...
0
votes
1answer
171 views

ACF Shortcode bringing in my shortcode is adding unnecessary line breaks

At the VERY core, my question is - how to remove linebreaks on a single ACF field that is inserted with the ACF shortcode. I have a lot of "shortcodes within shortcodes" here so I will walk this ...
2
votes
3answers
3k views

Shortcode from a widget is wrapped in unwanted <p> element

I'm using Black Studio TinyMCE Widget as a rich text editor widget. In a sidebar I inserted the TinyMCE widget with a [testimonial] shortcode and some content after it. For example: [testimonial] ...
0
votes
4answers
5k views

How to automatically add paragraph tags in the Visual Editor

From my Googling, it appears as though the default behavior in Wordpress is to add paragraphs automatically, but in the HTML view, regardless of what style I choose in the Visual Editor's style ...
0
votes
0answers
48 views

Inline style appears in the editor but breaks on live site

So there is a page with: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $desc= str_ireplace('"', '', trim(get_the_content())); ?> <?php ...
16
votes
6answers
23k 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? ...
1
vote
0answers
246 views

Wordpress editor strips out anchor tags when they appear on their own line

In the text below, when I toggle the WYSIWYG view from Visual to Text, the anchors are left intact. However, when I switch back to Visual, the anchors are replaced with &nbsp; elements. This is ...
4
votes
3answers
9k 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 ...
1
vote
0answers
108 views

TinyMCE strips breaks inside editor

the posts are shown correctly in the frontend. But when i go to edit, the content inside tinyMCE is without breaks ?! So i have to copy my content from frontend and paste it to the editor every time i ...
1
vote
2answers
805 views

Disable formatting on textarea

I'm using the following code in my plugin to display a <textarea> field on a page: echo '<textarea required="required" name="Message" class="textarea" cols="70" ...
1
vote
1answer
339 views

basic shortcode - Why 1st paragraph not wrapped in p tag, but 2nd is

I'm working on a basic plugin that adds shortcodes for columns, buttons, panels, ect. Nothing new here. I haven't altered wpautop in anyway; I've tried removing it and delaying it - no change. What ...
0
votes
1answer
768 views

remove and then add wpautop

I'll start by saying yes, I searched, and yes, I found an answer to this question. It's basically the solution I came up with but I want to make sure this isn't a bad solution. Here's the real ...
0
votes
0answers
100 views

get wpautop to not wrap tags but only text

Is it possible for wpautop to only wrap plain text, so that e.g. here: text <a href="">link</a> only the "text" gets wrapped. Why would you want to wrap tags anyway? Maybe anyone has a ...
14
votes
2answers
2k 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 ...
1
vote
0answers
107 views

Make WP not format code, not insert line breaks in between tags

Gahhhh! Are you kidding? Ok, I guess wp wants my source code all nice and formatted... <a href="/asdf">i'm a link</a><ul><li>list item</li></ul> becomes ...
0
votes
1answer
69 views

How do I format my custom html so wpautop won't try to reformat it?

I've got a desktop app that generates html for my customers to paste into their WP pages/posts. Nothing fancy just some image tags, hyperlinks and simple inline css. How do I preformat that code so ...
1
vote
1answer
2k views

Removing unneccessary p-tags (Not every p)

I removed wpautop from my theme: function disable_linebreaks($content) { remove_filter ('the_content','wpautop'); return $content; } add_filter('the_content','disable_linebreaks',1); ...
0
votes
1answer
76 views

Custom Field add markup to line breaks

I am looking for a solution to add markup to a custom field with multiple lines. Much like wpautop, but with customization. I'm not quite sure to approach this with a custom function or something ...
0
votes
2answers
498 views

If is_single in functions.php

I want the remove wpautop filter working only on posts from my blog. Because at some pages i need the autop, and at some pages i need it to not be there. I use the following rule and it is in my ...
0
votes
1answer
82 views

wpautop on section

I removed automatic formatting in my WP site by adding this to functions.php: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); Now I need to add it back into ...
0
votes
2answers
540 views

Strip <p> from <blockquote> or something better?

Looking for some help on something that has me really contemplating not using blockquotes for the moment! I have this code: <?php $show_after_p = 1; $content = apply_filters( 'the_content', ...
3
votes
1answer
3k views

wp_editor not adding paragraphs despite wpautop being set to true

I'm using the following code to produce a wp_editor instance: <?php if (version_compare($wp_version, "3.3") >= 0) { ?> <p><?php wp_editor( $answer->post_content, 'answer', ...
1
vote
1answer
419 views

Wrap Shortcodes and wpautop

WP has me pulling my hair out at the moment (past few days trying to solve). Trying to do some simple shortcodes which wrap around various points of an article. However wpautop() I believe is ...
4
votes
1answer
191 views

Numbering sections and block-level elements in wpautop(); Wordpress as CMS for long-form writing;

I am starting to learn how to write plugins for Wordpress. I'm interested in using WP as a CMS for long essays (6000-9000 words or more). My problem is what I call the Kindle problem, which is how do ...
2
votes
2answers
159 views

What is wrong with this code I have to make a blockquote shortcode

I have a shortcode for a blockquote [blockquote]this is the quote[/blockquote] ... this is the code. function shortcode_shortcodetest( $atts, $content = null ) { $return = '<div ...
0
votes
1answer
127 views

Remove some tags from shortcodes output? Trying to fix autop

remove_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' , 99 ); add_filter( 'the_content', 'shortcode_unautop', 100 ); Work for almost all my shortcodes excluding one that ...
0
votes
1answer
122 views

Cannot stop wpautop from messing up my plug-in output

I have a plug-in that embeds some javascript. I've tried using remove_filter() to stop wpautop in every way recommend and still can't get wordpress to stop wrapping my <script></script> ...
1
vote
1answer
286 views

Raw output (preventing wpautop)

Using WordPress 3.5. I'm trying to put a <form> into a Page of a WP-based site. Unfortunately, WP is "helpfully" screwing up the formatting of the form by inserting <br> and <p> ...
0
votes
1answer
1k views

Removing <p> tags around <div> tags

I’d like to stop WP from wrapping <p> tags around <div> tags in the TineMCE editor … Here’s what I’ve got: function filter_ptags_on_images($content) { return ...
3
votes
1answer
4k views

Remove wpautop from shortcode content / remove whitespace in buffering

I am using the Mailchimp plugin ( http://wordpress.org/extend/plugins/mailchimp/ )and it has a shortcode that uses output buffering to grab it's widget's code and spit it out in the content. however, ...
0
votes
2answers
1k views

Cannot get <p> tags working from a WPAlchemy metabox with wp_editor()

I'm using WPAlchemy on a project. For a template, I need to use a custom metabox which is working fine with a tinyMCE editor. Code to insert the meta box on the template (this is a piece of code ...
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 ...
2
votes
1answer
321 views

wpautop() when shortcode attributes are on new lines break args array

I have a custom shortcode tag with a few attributes, and I would like to be able to display its attributes on new lines - to make it more readable to content editors: [component attr1 ="value1" ...
0
votes
1answer
651 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 ...
0
votes
2answers
467 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
2answers
525 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 ...
2
votes
3answers
863 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 ...