• Resolved zoostudio

    (@zoostudio)


    Hi, thanks for your work.

    I need to include a shortcode inside the term description. I tried lots of possible solutions but the only one that worked was modifying a plugin archive.

    In public/layout/partials/content.php line 25 I’ve added “do_shortcode( $wcs_term->description )”. This works but I will lose it on the next update.

    Is there any way to do it without editing this file? maybe copying the file in my child-theme? or some filter in functions.php? I’ve found on forums this one: add_filter( ‘term_description’, ‘do_shortcode’ ); but it doesn’t work.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author ShapedPlugin LLC

    (@shapedplugin)

    Hi @zoostudio,

    Thanks for using the plugin.

    Sorry to say that the current version of the plugin doesn’t have any template override option/any custom hook to show the category term description without modifying the plugin.

    So, please keep a backup of your modification if the next update erases your customization. We have noted this as a feature improvement in our development roadmap. Hopefully, the template override option from the theme/child theme directory will be added to the future version of the plugin.

    Regards,
    The ShapedPlugin Team

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode’ is closed to new replies.