Help Locate The T-String Error

Discussion in 'HTML & Website Design' started by simonspurr, Sep 15, 2008.

  1. #1
    Ok, it says I have a t-string error on line 11 of index.php

    This is line 11 of index.php:
    <?php the_time('l, F jS, Y') ?> | <?php _e(’Filed under;’); ?> <?php

    Anyone tell me where the error is/how to fix it
     
    simonspurr, Sep 15, 2008 IP
  2. ausome

    ausome Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I copied and pasted your little snippet of code and ran it.
    Replace those single quotes around the words 'Filed under;'

    You've also left off the trailing semi colon from the_time('l, F jS, Y'); ?>
    But that doesn't seem to break anything. It's a good habit to put them in.

    You'll also want to have the command echo in front of each of those function calls so they actually show something if that's not being done within the functions themselves.

    <?php echo the_time('l, F jS, Y'); ?> | <?php echo _e('Filed under;'); ?>

    Hope that helps
    Cheers
    Tim
     
    ausome, Sep 15, 2008 IP
  3. simonspurr

    simonspurr Peon

    Messages:
    604
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man, that helps
     
    simonspurr, Sep 15, 2008 IP