Title: Autop, and do_shortcode?
Last modified: August 31, 2016

---

# Autop, and do_shortcode?

 *  Resolved [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/autop-and-do_shortcode/)
 * I already use ‘remove_filter (‘the_content’, ‘wpautop’);’ in functions.php to
   disable autop… so am I safe to not bother to add the autop=”false” bit?
 * And, I’m unclear on using shortcode=”false”… I read that it ‘does not call do_shortcode’,
   but what effect does that have.
 * [https://wordpress.org/plugins/get-post-content-shortcode/](https://wordpress.org/plugins/get-post-content-shortcode/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [webdeveric](https://wordpress.org/support/users/webdeveric/)
 * (@webdeveric)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/autop-and-do_shortcode/#post-7273346)
 * Gulliver,
 * This shortcode calls `wpautop()` if the `autop` attribute is true.
    And since
   the default value of the `autop` attribute is true, you need to specify `autop
   =false` in order to not call `wpautop()` on the content.
 * If the post content you want to retrieve has a shortcode in it, setting `shortcode
   =true` will run [do_shortcode()](https://developer.wordpress.org/reference/functions/do_shortcode/)
   on the content.
    This is the default behavior and if this is what you want, you
   can omit this attribute when using the shortcode.
 * Setting `shortcode=false` will skip using `do_shortcode()` and will return the
   raw content, which may include unprocessed shortcodes.
 * From,
    Eric
 *  Plugin Author [webdeveric](https://wordpress.org/support/users/webdeveric/)
 * (@webdeveric)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/autop-and-do_shortcode/#post-7273401)
 * Gulliver,
 * I’ve added a filter to this plugin that will allow you to set the default values
   of the shortcode attributes (`autop`, `shortcode`, etc.).
 * [See the readme for examples.](https://github.com/webdeveric/get-post-content-shortcode#filter-examples)
 * From,
    Eric
 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/autop-and-do_shortcode/#post-7273403)
 * Eric, thanks. Appreciated.
    I’m sorry for not answering your earlier reply – 
   lost in my to-do backlog. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Autop, and do_shortcode?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/get-post-content-shortcode_647b7e.
   svg)
 * [Get Post Content Shortcode](https://wordpress.org/plugins/get-post-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/get-post-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/get-post-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/get-post-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/get-post-content-shortcode/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gulliver](https://wordpress.org/support/users/gulliver/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/autop-and-do_shortcode/#post-7273403)
 * Status: resolved