1

I am receiving the this error

"Parse error: syntax error, unexpected T_ECHO"

with the following php code. I've checked brackets and quotes but I can't seem to find it.

<?php
if(!$_GET['ae']):
    _e('<a href="'.echo get_permalink(icl_object_id(9132, 'page', true)).'" class="row">foo</a>');
endif;
?>
Matt
  • 2,851
  • 1
  • 13
  • 27
Sam
  • 5,150
  • 4
  • 30
  • 51

1 Answers1

3

Since _e function already echoes things,so no need for that extra echo

<?php
if(!$_GET['ae']):
    _e('<a href="'.get_permalink(icl_object_id(9132, 'page', true)).'" class="row">foo</a>');
endif;
?>
Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98