Hi @blizo
Content No Cache doesn’t have any inbuilt editor that gives you the possibility to add custom PHP code.
The Content No Cache editor changes if you have Gutenberg or a page builder or whatever. If the text mode of your editor doesn’t work with PHP, it will never work with Content No Cache.
Does the same text mode of your editor work with PHP without Content No Cache?
If it works without Content No Cache, you can try by adding the parameter request=”remote” to the shortcode. For example: [content_no_cache id=”3328″ request=”remote”].
Have a great day!
Jose
Thread Starter
blizo
(@blizo)
Hi @giuse ,
How do you get PHP to work in the editor?
Am I missing something?
Thanks for your help!
-
This reply was modified 2 years, 10 months ago by
blizo.
Thread Starter
blizo
(@blizo)
Hi @giuse I am using this plugin for PHP:
https://en-gb.wordpress.org/plugins/insert-php-code-snippet/
I have added the code for a login form via the insert PHP plugin and added that PHP shortcode into the Content No Cache plugin.
The login form loads on the frontend and when I login the browser gets stuck on a white page with this URL:
example.com/wp-admin/admin-ajax.php?action=eos_dyn_get_content
Do you know why and any idea how to fix this?
After logging in the page should load but it’s getting stuck.
Logging in works using the form because when I return to the website the logged in menu loads.
-
This reply was modified 2 years, 9 months ago by
blizo.