• I activated this free plugin and all appeared to be working well, I used the tinyMCE editor to add an image to a category page and it displayed perfectly. It was only some time later that I noticed some category pages wouldn’t render. Debugging the issue I found that the line
    add_filter('term_description', 'do_shortcode');
    in this plugin’s only file was causing the problem. If I commented out that line, the pages rendered properly.

    I suspected that the problem was an incompatibility with another plugin I was using called “Insert PHP Code Snippet”, it was already allowing me to use shortcodes in the category description. The category pages failing to render were pages where the description contained shortcodes. However, before debugging that route further, it occurred to me that this admin plugin shouldn’t really be doing anything when the front-end pages are being rendered. I added the following code at the top of the plugin file and that appears to solve the issue:

    if( !is_admin() ) {
            return;
    }

    I can live with making this small change to keep my site working. Obviously, this is the free version of the plugin, but it would be good to have a permanent solution whenever there is the another update.

    • This topic was modified 4 years, 11 months ago by brookerrj.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kevin heath

    (@ypraise)

    Thank you for pointing out this conflict.

    I will take a look in the new year at testing your solution and seeing if I can incorporate it into the plugin with an update.

    Thanks again
    Kevin

    Thread Starter brookerrj

    (@brookerrj)

    I forgot about this issue, installed the latest update and immediately got the same conflict. A bit more serious this time as the website is now live. Anyway, I’ve re-patched as before, and all is well. Would be good to have a permanent solution.

    • This reply was modified 4 years, 5 months ago by brookerrj.
    Plugin Author kevin heath

    (@ypraise)

    thanks,

    I’ll be adding your fix to the next update when I do the second stage for name change of plugin.

    thanks again for pointing out the issue and the solution

    Kevin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some front end category pages don’t render if they contain a shortcode’ is closed to new replies.