Syntax error when adding do_shortcode
-
Hello,
I’m trying to add this plugin to my theme. Following the instructions, I add the line
<?php echo do_shortcode( '[searchandfilter fields="search,category,post_tag"]' ); ?>to the end(? not sure if that’s right) of the functions.php of my theme. But when I click Update File, it says:
syntax error, unexpected ‘<‘, expecting end of file
What am I doing wrong?
The topic ‘Syntax error when adding do_shortcode’ is closed to new replies.