Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Meitar

    (@meitar)

    The problem is most likely that your custom template does not correctly apply the WordPress filter needed for shortcode expansion. See the bottom of get_the_content() in the WordPress codex. Specifically, ensure you are calling apply_filters() with the_content filter when you display your post content.

    Thread Starter Phil

    (@owendevelopment)

    I’m confused, you mean like this?

    <?php apply_filters('the_content',get_the_content()) ?>`

    Plugin Author Meitar

    (@meitar)

    Probably.

    This isn’t a plugin issue, it’s a template issue. Shortcodes are not specific to custom post types so they will work as long as the template is generating the post content and filtering it appropriately.

    That’s the most help I can offer you. Further replies to this thread will be ignored. Good luck.

    Thread Starter Phil

    (@owendevelopment)

    I have it working now.

    Plugin Author Meitar

    (@meitar)

    Great, glad to hear it, Phil.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode not working in Custom Post Type’ is closed to new replies.