Hyperlinks in PHP help needed

Discussion in 'Web Design and Development' started by bigrell486, Nov 12, 2010.

  1. bigrell486, Nov 12, 2010
    Last edited: Nov 12, 2010

    bigrell486 macrumors 6502

    bigrell486

    Joined:
    Jul 10, 2006
    Location:
    Home
    #1
    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.
     
  2. CANEHDN macrumors 6502a

    CANEHDN

    Joined:
    Dec 12, 2005
    Location:
    Eagle Mountain, UT
    #2
    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.
     

Share This Page