Is there any way to add PHP code into a post or page for example editing a ‘text block’ or ‘code block’? I tried but is possible that I’m doing something wrong.
thanks in advance
Hey pnacho!
Thank you for using our theme.
Have a look at:
https://kriesi.at/support/topic/codeblock-converts-php-code-into-html-comment-markup/
You can’t use php codes inside the code block element and shortcodes are not recommended as it might break the theme code.
Cheers!
Günter
Can I use PHP with another way or with another block?
Hi!
Thank you for coming back.
You can use shortcodes to insert php inside a page or post, but you should not use them in code blocks.
How to use and implement shortcodes see: http://codex.wordpress.org/Shortcode_API
Regards,
Günter