sphinx Posted November 8, 2014 Share Posted November 8, 2014 Hi. I'm trying to use this code: <?php previous_post_link('%link', '<img src="http://localhost/website.gif" alt="Previous" />' true) ?> But I get the error: Parse error: syntax error, unexpected T_STRING Will this be related to the code incorrect for wordpress or a general error? Thanks Link to comment https://forums.phpfreaks.com/topic/292368-unexpected-t_string/ Share on other sites More sharing options...
Barand Posted November 8, 2014 Share Posted November 8, 2014 Looks like you missed a comma before "true" Link to comment https://forums.phpfreaks.com/topic/292368-unexpected-t_string/#findComment-1496122 Share on other sites More sharing options...
QuickOldCar Posted November 8, 2014 Share Posted November 8, 2014 While it is not necessary to always use a semicolon the end of php statements...I always put them there out of habit. <?php previous_post_link('%link', '<img src="http://localhost/website.gif" alt="Previous" />', true); ?> Link to comment https://forums.phpfreaks.com/topic/292368-unexpected-t_string/#findComment-1496131 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.