Hi – I am trying to add the INPUT FIELD code as mentioned on link in the AnsPress>Plugin theme file editor> Templates>Functions.php file (at the end)
I get the below error:
Your PHP code changes were rolled back due to an error on line 158 of file wp-content/plugins/anspress-question-answer/templates/functions.php. Please fix and try saving again.
syntax error, unexpected '<', expecting end of file
How to insert a TEXT Field in Ask Form? I Get below error in the functions.php file. (See screenshot attached)
In this case as you’re adding it to an existing functions.php the initial <?php line is not needed. If you remove that and have the snippet start at:
// AnsPress form text field example.
This should resolve your issue.