Do Shortcode

Hi,

I have a plugin to display shortcode on my site. For that I have included the following code to my functions.php in X Child:

add_filter( ‘category_description’, ‘do_shortcode’ );
add_filter( ‘post_tag_description’, ‘do_shortcode’ );

This worked the last years. But now the shortcode [sc name=“Hawaii”] on Category pages isn´t working anymore:

Is this a problem of X? Do I have to change the code in my functions.php?

Michael

Hey Michael,

This is not an issue with X because first, the category and term descriptions are not used in the theme. You might have some customization or the description in your site is powered by a third party plugin. You need to forward this to a third party developer or the plugin developer if you’re using a plugin.

Please note that we do not have support for customization and third party plugin issues. But just to add proof that this is not an issue with X, I tried displaying the category description via a custom code and posted a shortcode in one of the categories and it works even without filtering the category_description.

You will need to consult with a third party developer for this to maintain customizations and third party plugins in your site. That is even if you have gotten the custom code here in the forum. Custom codes you find here are only meant to be a guide.

Thank you for understanding.

Thank you for your answer.

I understand that you can´t support for customization and third party plugin issues.

But I even can´t use shortcodes from X there in my category description like [column type=“1/4”] etc and the category description is not a third party plugin.

Have you any idea what has changed that the shortcodes of X din´t work there?

Yes, the category description is not a third party plugin. It’s a feature in WordPress that X does not use that is why you need some customization or a third party plugin to display it in your site. And that is where the issue is coming from.

This is not an issue with X shortcodes as even third party shortcodes do not work in your site. This is also not an issue with X since all shortcodes are working in my test sites and sites of the rest of the users. And as I said previously, I even tested showing the category description in my test site and shortcodes pasted in there just works out of the box. This means there is something causing the issue in your site but it’s unlikely X.

Please consult with a third party developer to troubleshoot the issue in your site site. Or, you can do this yourself by switching to the parent theme and deactivating all third party plugins to start. Then, check the customizations you’ve done in your child theme.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.