Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bigrell486

macrumors 6502
Original poster
Jul 10, 2006
331
101
Home
Hello. I am trying to embed helpful links into the 404 page of my website. The site is powered by WordPress and 404 page is in PHP. I have no PHP knowledge so I am having trouble getting things to work.

This is the code I am attempting to use:
Code:
<p><?php _e( 'If you are unable to understand the above message, <a href="http://website.com/blog/japanese-lessons/lesson-1-the-alphabet/">Click Here</a> to start studying or <a href="http://website.com/404honyaku.html?keepThis=true&TB_iframe=true&height=100&width=400" title="Error Message Translation" class="thickbox">Click Here</a> if you're lazy ', 'twentyten' ); ?></p>

This code works perfectly fine in html when you remove the PHP tags.

Any help you could provide would be helpful thanks.
 
Last edited:
Code:
<p><?= 'If you are unable to understand the above message, <a href="http://website.com/blog/japanese-lessons/lesson-1-the-alphabet/">Click Here</a> to start studying or <a href="http://website.com/404honyaku.html?keepThis=true&TB_iframe=true&height=100&width=400" title="Error Message Translation" class="thickbox">Click Here</a> if you're lazy ', 'twentyten' ); ?></p>

This should work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.