-4

I just tried to add this line

data-tippy-content="<?php echo get_post_meta($post->ID, 'Author', true); ?>"

into some php code. The result is this:

<?php
the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark" class="modal-link"  data-tippy-content="'echo get_post_meta($post->ID, 'Author', true)'">', '</a>' );
?>

Any idea what I did wrong here?

The error message I got is:

Parse error: syntax error, unexpected token "echo", expecting ")"
alexander
  • 35
  • 4

1 Answers1

-1
<?php the_title( '<a href="'. esc_url( get_permalink() ) .'" rel="bookmark" class="modal-link"  data-tippy-content="' . get_post_meta($post->ID, "Author", true). '">,</a>' );  ?>