Skip to main content

Questions tagged [wp-autop]

Changes double line-breaks in the text into HTML paragraphs (`<p>...</p>`). WordPress uses it to filter a posts content and its excerpt per default. This function can be used for autocorrecting any HTML saved to the database (or just displayed). Keep in mind that in the background it is using a time extensive regular expression, so it is considered to slow down your requests.

1 vote
1 answer
113 views

I'm learning how to use short codes but I don't undrestand why WordPress keeps rendering broken paragraph tags. I created a file called wp-content/themes/twentytwentythree/templates/single.html with ...
learningtech's user avatar
0 votes
0 answers
142 views

I have a shortcode that outputs HTML and I've inserted it into a single post template. The output gets extraneous <br/> and <p> tags, which I've read in other topics are likely due to ...
Aayla Secura's user avatar
0 votes
0 answers
65 views

The line breaks are stripped off when the p tag has a dir attribute inserted, to explain further I'll list some examples. Let's say we have 2 lines of text as following <p>Text Paragraph Number ...
David Buik's user avatar
0 votes
0 answers
319 views

I have a shortcode which accepts basic HTML tags as shortcode attribute. When this shortcode is used in the shortcode block i.e within <!-- wp:shortcode --> then unbalanced <p> tags are ...
Aakash Chakravarthy's user avatar
1 vote
0 answers
797 views

I'm using the remove_filter in functions.php to remove the auto insertion of <p> and <br> tags on my wordpress site. remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt'...
Oneezy's user avatar
  • 111
1 vote
0 answers
395 views

I am using wp_editor in a custom meta box. It is saving the content to the post metadata. And displaying it in the meta box as it should. The problem is when I am trying to display this content on ...
Amrit Ray's user avatar
1 vote
0 answers
654 views

While working on a custom plugin, I needed to add the wp_editor in the admin to let the user add its own content. I want the user to be able to write custom rich texts with the "Visual" editor mode ...
fraxool's user avatar
  • 121
-1 votes
1 answer
1k views

I need to remove the "wpautop filter" from my WordPress Website because it is adding too many paragraphs. I'm new to WordPress. I don't know how to create Child themes. The name of my theme is the "...
Tope Leye's user avatar
0 votes
0 answers
340 views

I'm using wordpress API to display content. I'm using the classic editor since guttenberg is bugging out elsewhere. I noticed that if a paragraph does not have inline styles, wordpress does not save ...
geochanto's user avatar
  • 131
1 vote
1 answer
4k views

How to process the textarea field with the standard WordPress function wpautop() when clicking the button? Here's the form: <textarea id="my_ta">Lorem ipsum!</textarea> <button id="...
Андрей Бочкин's user avatar
0 votes
1 answer
272 views

WordPress 5.2 destroys structured data by adding rel="noopener noreferrer" to widget output (also to shortcodes): How to display the shortcode output without code change? This feature was added in 5....
Blackbam's user avatar
  • 585
3 votes
1 answer
9k views

When adding content into the description and short description fields for a product, line-breaks and tags are completely removed from the markup. Other than installing Advanced TinyMCE, is there any ...
macondo_buendia's user avatar
2 votes
3 answers
5k views

We build a media (based on bootstrap 4 media object) shortcode with the following syntax: [media img="https://via.placeholder.com/64x64.png"]<h5>List-based media object</h5>Cras sit amet ...
endcoreCL's user avatar
0 votes
1 answer
375 views

I run a website about a programming language which is very well-integrated with a front-end which adds a lot of styling to the code that cannot be replicated in the browser. For that reason, I publish ...
C. E.'s user avatar
  • 101
1 vote
2 answers
3k views

I've registered a custom editor block with Advanced Custom Fields (ACF), and am using render_template with a PHP template partial to display the block contents. Inside the template is some HTML (...
Morgan Estes's user avatar
  • 1,555

15 30 50 per page
1
2 3 4 5 6