WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Our Team Shortcodes Don't work in Projects

[Resolved] Our Team Shortcodes Don't work in Projects

  • Any reason why the “Our Team by Woo” shortcodes don’t work in the Projects? I would think the plugin being from the same family would play nice.

    The idea is that we have projects, and then add the people associated with those projects added via the team shortcode using the category. But it just posts the shortcode text on the front end.

    https://wordpress.org/plugins/projects-by-woothemes/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I Found one work around, seems that if I replace the following in the templates/single-project/description.php

    <?php echo apply_filters( 'projects_description', wpautop( $post->post_content ) ) ?>

    with

    <?php the_content(); ?>

    It seems to fix the issue, would you recommend a different fix? Do you plan on updating the plugin to support other shortcodes to work with Projects?

    Plugin Author James Koster

    @jameskoster

    We’ll look into this for the next release. Thanks for reporting.

    Plugin Author James Koster

    @jameskoster

    FYI as of 1.1.0 shortcodes will work as expected for the full project description. To allow shortcodes on project excerpts you’ll need to specify it, just as you do to allow shortcodes in normal post excerpts.

    add_filter( 'post_excerpt', 'do_shortcode' );

    Hi Jameskoster.

    You mentioned that shortcodes will work in the Projects Plugin v1.1.0, but how can I use shortcodes in the full project description areas.

    I’m not quite versed in coding, so I’m not sure where to add the line above,

    add_filter( ‘post_excerpt’, ‘do_shortcode’ );

    or how it works.

    should I follow Jason’s suggestion?

    Thanks
    TIMØ

    and btw… I’m also getting a error on the individual project pages:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘woo_single_post_nav’ not found or invalid function name in /home/timoronan/timoronan.com/wp-includes/plugin.php on line 429

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Our Team Shortcodes Don't work in Projects’ is closed to new replies.