Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I remove autop filter from shortcode #181

Open
rigids opened this issue Mar 6, 2017 · 0 comments
Open

How can I remove autop filter from shortcode #181

rigids opened this issue Mar 6, 2017 · 0 comments

Comments

@rigids
Copy link

rigids commented Mar 6, 2017

Following the documentation I created a shortcode and using view in controller class to call a twig file. This adds
break and paragraph tag which I am looking to remove I tried using remove_filter( 'the_content', 'wpautop' ); but I suppose I am adding it at incorrect place. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant