• Resolved dl1mgb

    (@dl1mgb)


    Hello,
    I just installed the plugin WPCode and wanted to test the PHP snippet function. I create a new snippet, chose code type “PHP snippet”, add

    <?php
    echo “Hello World”;
    ?>

    Then I save it and the plugin shows as code type “HTML snippet” and removes the “<?php” from the Code Preview window.

    Does my installation not allow to use PHP snippets? Is there any hidden setting I have to activate to be able to save PHP snippets?

    WP 6.0.3
    WPCode 2.0.3

    Also, the pre-installed code snippet “Completely Disable Comments” shows as HTML snippet. But the code in this snippet looks more like PHP.

    • This topic was modified 3 years, 7 months ago by dl1mgb. Reason: additional information
Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @dl1mgb,

    Thank you for the details. From what I can see in the system info you sent, the only plugin that could interfere with taxonomies seems to be “Real Category Management” but I think you are using the paid version so we can’t really test the same setup that you have.
    You mentioned trying to disable all other plugins on the site and WPCode still not saving the code type so I’m not sure how we can help debug this issue without more access to your particular setup.

    If you have an option to set up a staging site where you could share access I’m happy to look further into this issue otherwise I don’t see a way to debug this further.

    Thread Starter dl1mgb

    (@dl1mgb)

    As I wrote previously, I disabled all plugins one by one to see if any has influence on the WP Code functionality. Back then, I saw no influence.

    I just tried it again and only deactivated the Real Category Management plugin and bang, WP Code saved the PHP snippet and the Auto Insert option correctly.

    So now we know that the Real Category Management plugin. And it seems only to be the Pro version. The free version I just installed on the “good” system has no influence. What next?

    Plugin Author Mircea Sandu

    (@gripgrip)

    Thank you for the update.
    First thing I would suggest doing is updating the “Real Category Management” plugin to the latest version (there seems to be an update available from the system info).

    If that doesn’t work I think you should reach out to the Real Category Management plugin support to ask if there’s a way to prevent it from interfering with setting taxonomy terms for post types that are not public, there might be a setting.

    Thread Starter dl1mgb

    (@dl1mgb)

    The update of the plugin didn’t help. So I will contact the developer of Real Category Management. And will come back with info when I got one.

    Many thanks so far for your support!

    Thread Starter dl1mgb

    (@dl1mgb)

    I still don’t know who is always trying to set it on “Resolved”. Either a person or a so called intelligent automat, the problem is still open!

    Thread Starter dl1mgb

    (@dl1mgb)

    I found a procedure that might work:
    – deactivate Real Category Management
    – Create snippet as PHP snippet (also with shortcode), save it and activate it
    – activate Real Category Management

    New snippet is still working. But if you want to change it, you have to go the above mentioned procedure.

    For the “resolved-automat”: Problem still not solved.

    • This reply was modified 3 years, 7 months ago by dl1mgb. Reason: additional discovery
    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @dl1mgb,

    I marked the support thread as resolved as we found the source of the issue and it is not directly related to WPCode but the way another plugin makes changes to how taxonomies work on your site.

    Please add an update here when you find out more info from the Real Category Management plugin and we can look into improving compatibility if it doesn’t affect how the plugin works without that plugin installed.

    I will mark this thread as resolved now because with the data we have at this time this is not an issue specific to WPCode.

    Thanks

    Thread Starter dl1mgb

    (@dl1mgb)

    All OK. Many thanks for your assistance!

Viewing 8 replies - 16 through 23 (of 23 total)

The topic ‘WPCode only saves HTML snippet (no PHP possible)’ is closed to new replies.