The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
70 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
559 views

disable wpautop but 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 ...
1
vote
1answer
168 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
49 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
58 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
47 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
368 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
258 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
94 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
13 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
74 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
10 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 ...
0
votes
0answers
46 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 ...
0
votes
0answers
70 views

Shortcode returns parts of the code twice?

I have a shortcode that lists custom type posts, like: while ( $loop->have_posts() ) : $loop->the_post(); $output .= '<a href="#">'; $output .= '<div><img ...