68 posts
  • Elite Author
  • Author Level 7
  • Weekly Top Seller
  • Trendsetter
+4 more
2035Themes
says

Wordpress automatically puts paragraph tags around everything in the page/post editor. How to remove that?

wpautop is not solution. Its disable all p tag. I think is not legal in themeforest.

Any solution for this?

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 more
tommusrhodus
says

In what context do you need to suppress paragraph tags? Shortcodes?

68 posts
  • Elite Author
  • Author Level 7
  • Weekly Top Seller
  • Trendsetter
+4 more
2035Themes
says

In what context do you need to suppress paragraph tags? Shortcodes?

Right. Shortcodes.

68 posts
  • Elite Author
  • Author Level 7
  • Weekly Top Seller
  • Trendsetter
+4 more
2035Themes
says
i fount solution from this page function wpex_clean_shortcodes($content){ $array = array ( '<p>[' => '[', ']</p>' => ']', ']<br />' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'wpex_clean_shortcodes');
by
by
by
by
by
by