The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
599 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"> ...
1
vote
1answer
239 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
566 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 ...
0
votes
1answer
1k 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
63 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 ...
0
votes
1answer
595 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
1answer
401 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
1answer
110 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 ...
1
vote
0answers
164 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 ...
1
vote
0answers
90 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
0answers
97 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
0answers
25 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 ...
0
votes
0answers
76 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 ...