The wp-autop tag has no wiki summary.
0
votes
1answer
25 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 ...
0
votes
1answer
25 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
39 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', ...
0
votes
1answer
40 views
Replacing & in JS code on pages
I am needing to remove the & that seems to be replacing my & on my page code.
My original code looked like this:
...
0
votes
0answers
28 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 ...
0
votes
1answer
103 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
...
4
votes
1answer
91 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 ...
1
vote
1answer
91 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 ...
2
votes
2answers
41 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
65 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
64 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
2answers
122 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" ...
0
votes
1answer
78 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
220 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 ...
2
votes
1answer
137 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"
...
2
votes
3answers
2k 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  s. If I manually place <p></p> in the HTML mode, they are stripped as ...
2
votes
1answer
1k 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
3answers
655 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
2answers
505 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 ...
3
votes
1answer
1k 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
2answers
1k 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
1answer
2k 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 ...
5
votes
1answer
345 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
1k 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 ...
0
votes
1answer
176 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
387 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
75 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
93 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
295 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
503 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
1k 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 ...
2
votes
2answers
1k 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
293 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>
...
6
votes
5answers
7k 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
3answers
395 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 ...