Projects by WooThemes
[resolved] Our Team Shortcodes Don't work in Projects (6 posts)

  1. Jason
    Posted 2 years ago #

    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.


  2. Jason
    Posted 2 years ago #

    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 ) ) ?>


    <?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?

  3. James Koster
    Plugin Author

    Posted 2 years ago #

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

  4. James Koster
    Plugin Author

    Posted 2 years ago #

    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' );

  5. timoronan
    Posted 2 years ago #

    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?


  6. timoronan
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Projects by WooThemes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic