Hi, I have an active custom code module in custom code snippets which was working and now has stopped , it's as if custom code snippets has been deactivated. Shane was checking a bug for me which he traced to this module, I'd now like to debug it, but custom code snippets is no longer working.
How can I activate it?
Thanks
I wonder yet what custom code snippet you want to activate and where you added that? Can I have more information about your issue and once I can see what is the issue, I can help you with that.
Hi Minesh,
Yes the code snippet from the previous ticket is the one I'm talking about. I deactivated it to check that was the problem - it was.
So I activated it with the intention of checking the code, but now when I run the View where this code snippet should be used the code doesn't run.
Thanks
- Can you please make sure that the you added the correct view ID within the code snippet so it should target the view you want.
- can you please make sure that the code snippet is active
If both of the above cases are true, I will require problem URL where you added the view as well as access details and you should also share the link where I can see the code snippet you added.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
Thanks for your reply, sorry not clear where the duplicate function names are, I'm using the medicinal use search view - hidden link which doesn't have any query filters and should use code snippet medicinal search - but doesn't
Thanks
Yes - I can see the issue and I'm not sure whats going on here.
I checked the FTP access details you shared but its not working at this end. Can you please send me working FTP access details and I will try to troubleshoot further.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
Not clear what you mean by
"It seems your plugin your theme hijack the priority of Custom Code snippet you added to "Custom Code" section offered by Toolset."
Was the site hacked? do I need t add extra security?
When you say update all plugins and theme does that mean remove and reinstall?
Attached screen is what I see when I checked - what is this telling me? Do I need to remove this from functions.php?
Thanks for your help
David
"It seems your plugin your theme hijack the priority of Custom Code snippet you added to "Custom Code" section offered by Toolset."
Was the site hacked? do I need t add extra security?
==>
No , I mean to say that the code you added to "Custom Code" section is not get executed as I suspect there is some higher priority of some other plugins hook/actions but it can be anything.
That is why I've added the code to your current theme's functions.php file and I can see it get executed.
When you say update all plugins and theme does that mean remove and reinstall?
==>
You can update plugins from the plugins page or yes you can remove it, download the latest version of your theme or plugin and reinstall it.
Attached screen is what I see when I checked - what is this telling me? Do I need to remove this from functions.php?
==>
Yes, you see that because we added the code to functions.php file and the code we added is executed now so you can adjust the hook code now as per your requirement.
Hi Minesh,
If I understand you're saying I should move the medicinal use search from Toolset custom code to functions.php.
If that's correct, do I need to make any changes to the code when moving it to functions.php
Thanks
Hi Minesh,
Could you please show me the code to convert the working example code that you added to functions.php to a plugin and include the add_shortcode function.