WordPress.org

Support

Support » Plugins and Hacks » Custom Post Widget » [Resolved] [Plugin: Custom Post Widget] Can we disable wpautop?

[Resolved] [Plugin: Custom Post Widget] Can we disable wpautop?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I accomplished this by changing the the_content to get_the_content in the code.

    This plugin is amazing, BTW. Using this with Widget Logic is super powerful. I love this. I had my own custom post type set up to do what this does in a clumsy way, and found this by accident. Amazing.

    Maybe have a setting to turn wpautop off though? I added a custom field to the Content Block post type to trigger disabling wpautop like I do post-by-post and it wasn’t working.

    Plugin Author Johan van der Wijk

    @vanderwijk

    Hi Julie, I’m not sure what you mean by disabling wpautop. Could you please explain what this does and why you would need this? Many thanks, Johan.

    julieblair1979

    @julieblair1979

    the_content puts the post through a filter and adds formatting (p tags and such), even around images, and it was messing up the areas I was using the posts for. get_the_content just pulls it as a string, so there is no HTML added to my post, which aready had my own HTML in it.

    Plugin Author Johan van der Wijk

    @vanderwijk

    The latest version of the Custom Post Widget plugin now has the option to disable apply_filters on the_content which should solve this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Custom Post Widget] Can we disable wpautop?’ is closed to new replies.
Skip to toolbar