{"id":17731686,"date":"2024-05-03T17:33:13","date_gmt":"2024-05-03T17:33:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-none-php-code-in-htmlphp-cause-error\/"},"modified":"2024-05-03T17:33:13","modified_gmt":"2024-05-03T17:33:13","slug":"using-none-php-code-in-htmlphp-cause-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-none-php-code-in-htmlphp-cause-error\/","title":{"rendered":"Using none PHP code in HTML+PHP Cause Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I built a custom form using Vue.js CDN where In the html I can write template code like this. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;\/div&gt;\n        &lt;strong&gt;{{name}}&lt;\/strong&gt;\n      &lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The issue is I think because I am using none recognized  PHP I get errors trying to get the html to render is there a way to separate HTML+PHP so it&#8217;s not combined in the plugin or is there a way to tell the plugin to ignore unrecognizable php code. For me to get my form to work I have to use WPCode to render the HTML because it allows to use separate code snippets just for HTML only. When I try to use Fluent Snippets I get error<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Parse error: syntax error, unexpected 'version' (T_STRING) in \/fluent-snippet-storage\/25-test-form-html.php on line 221\n\nFatal error: Exception thrown without a stack frame in Unknown on line 0<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-17731686","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17731686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17731686\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17731686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}