php - Parse error - syntax error, unexpected T_STRING -


i've tried diagnose myself i'm no programmer, hopeful guys can me out. functions.php file, i'm told issue in add_filter('excerpt_more', 'new_excerpt_more'); line, wanted include larger part of code at. appreciated!

function new_excerpt_more($more) {     global $post;     return '...<br><a href="'.get_permalink($post->id).'">read more <img class="read-more" src="'.get_bloginfo('template_url').'/images/read-more-arrow.jpg" alt="read more" /></a>'; } add_filter('excerpt_more', 'new_excerpt_more');  // custom excerpt length show homepage small excerpts function custom_excerpt_length($length) {     return 100; } add_filter('excerpt_length', 'custom_excerpt_length', 999); 

the problem in above line return statement. there's apostrophe missing @ end of line, before semicolon.
line should this:
return '...<br><a href="'. get_permalink($post->id) . '">read more <img class="read-more" src="'.get_bloginfo('template_url') . '/images/read-more-arrow.jpg" alt="read more" /></a>';


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -