PHP allow splitting code
-
Hello,
Thanks so much for this plugin, I have been using it for awhile now with html and JS and recently I tried to do some customization with PHP for some projects.
I was receiving the following error when I tried to echo a variable for an array:
Fatal error: Call to a member function getContent() on a non-object in /wp-content/plugins/post-snippets/src/PostSnippets/Shortcode.php(97) : eval()’d code on line 1
I already have the variable array on the template’s head, I just wanted to echo the function as a snippet and it was producing the error. However if I included the variable and echo on the same snippet the php will run fine.
Thanks in advance.
- The topic ‘PHP allow splitting code’ is closed to new replies.