Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Add a PHP code into page

Open magisterson opened this issue 8 years ago • 2 comments

I am buliding website using UNYSON. I have reservation script made by programmer. Before it was using by chooseing right template on right hand side on backend. templates where in /my_template_name/template_parts/PHP-file.php

Is there a way to put code from this PHP file into unyson "Text block"? Or i have to choose template from list on right hand side?

magisterson avatar May 17 '18 09:05 magisterson

The text block shortcode doesn't support execution of the string code. If you want that feature you must contact your theme author. For unyson we can't do it because of security reasons I advise you not to use such a render type.

ViorelEremia avatar May 17 '18 14:05 ViorelEremia

I am a creator ot theme :D OK we made it using this plugin: https://pl.wordpress.org/plugins/php-code-widget/ And then I added PHP code to widget in area created in functions.php

magisterson avatar May 17 '18 14:05 magisterson