The tag has no usage guidance.

learn more… | top users | synonyms

-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
137 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
474 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
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 ...
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
2k 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
367 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> ...
16
votes
6answers
24k 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
891 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 ...