Parse error: syntax error, Unexpected '<' online 1098 >

Asked

Viewed 60 times

0

Guys, I have a Function.php that ends like this:

// Clear Helper/s
/* **************************************************************************************************** */

function n_clear() {
    echo "<div class='clear'></div>";
}

It works perfectly.

Only when I add these lines:

// LEIA MAIS
add_filter('the_content_more_link', 'filter_more_link');

function filter_more_link( $link ) {
    return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '" title="Continue lendo '.get_the_title().'">Continue lendo '.get_the_title().'...</a>';
}

It shows the following error: Parse error: syntax error, unexpected '<' on line 1098 >

Does anyone know how to solve?

  • Is this wordpress? this functions.php file is from some plugin or is it native to wordpress?

  • Are you sure it’s that file?

  • 1

    What is on line 1098 ? And what file is specified by parse error ?

  • Maybe there are not escaped quotes in the title or permalink of some record.

  • Which file does the parse error are you specifying? this line of code is correct!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.