Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

T STRING Error in code

7:23 pm on Jan 24, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:July 4, 2007
posts: 187
votes: 0

I am wanting to insert this bit of code

_e( 'Read more', 'Translation' );

into this section of my code

$return_html.= '<a class="red" href="'.get_permalink($post->ID).'">_e( 'Read more', 'Translation' );</a></li>';

but I keep getting T_STRING errors when doing so. I'm really not to up to speed with PHP and I'm sure it's something fairly simple.

Any ideas or help would be greatly appreciated.
7:36 pm on Jan 24, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Feb 22, 2009
votes: 0

Hi there greencode,

Try this:-

$return_html.= '<a class="red" href="'.get_permalink($post->ID).'">'._e( 'Read more', 'Translation' ).'</a></li>';

I think that's Ok, you needed to concatenate the string.

Have fun.