WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Shortcode $content not showing in Custom Post Type (2 posts)

  1. pixelsailor
    Member
    Posted 1 year ago #

    I have an enclosing type shortcode that includes $content. The shortcode works fine in regular Posts/Pages however in a custom post type it breaks. The shortcode still "works" but insofar as to return the html string with the default variables. Any attributes and custom $content defined in the post are lost.

    Do custom post types need to have shortcodes enabled?

  2. pixelsailor
    Member
    Posted 1 year ago #

    Disregard. It would appear that the plugin W3 Total Cache was preventing the shortcode from registering post type. Wish I would have discovered that before spending hours editing code trying to solve this.

Topic Closed

This topic has been closed to new replies.

About this Topic