Parse error on index.php but not on single.php
-
Hello, I´m using theme from elegantwpthemes.com but I got strange error. I made simple article template (with custom fields, php include and get_post_meta). I still have parse error on home page (index.php) but article itself is displaying correctly (single.php) which is sort of strange. Does anybody same experience with php code parsing in wordpress?
Here´s error message:
Parse error: syntax error, unexpected ‘?’ in /home/free/ic.cz/w/www-hodinky-guess/root/www/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 3
And here´s part of my article template:
<div class="head-vlevo"> <img class="uvodni" title="<?php echo get_post_meta(get_the_ID(), "komplet", true); ?>" src="<?php echo get_post_meta(get_the_ID(), "imgurl", true); ?><?php include (ABSPATH . "php/str_komplet.php"); ?>.jpg" height="250px" alt="<?php echo get_post_meta(get_the_ID(), "komplet", true); ?>" /> </div>I will be happy for any idea how to solve this issue.
Thanks Michal
The topic ‘Parse error on index.php but not on single.php’ is closed to new replies.