WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] its late and I'm tired (7 posts)

  1. Zoion
    Member
    Posted 7 years ago #

    <?php if (is_home()) {
    echo "this is the house of milk and tar";}
    else {
    echo '<a>">this is the house of milk and tar</a>'; } ?>

    This is pumping out this error:

    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in ...\wordpress\wp-content\themes\house of milk and tar\header.php on line 24

    Help please? (I'm too tired and lazy to figure it out myself.)

  2. chaaban
    Member
    Posted 7 years ago #


    < ?php
    if (is_home())
    {
    echo "this is the house of milk and tar";
    }
    else
    {
    echo "<a> this is the house of milk and tar</a>";
    }
    ?>

    this should work ..

    if u want to make it in bold put instead of (a) ---> <b>

    goood luck ..

    i'm going to sleeeep also

    Good night :)

  3. vkaryl
    Member
    Posted 7 years ago #

    Well, you've got a double-quote in there that probably doesn't belong for one thing: '<a>">

    Try removing it.

  4. Michael Bishop

    Posted 7 years ago #

    I think the problem is


    echo "this is the house of milk and tar";}
    ,

    should be
    echo "this is the house of milk and tar"};

    `

    But I could be wrong.

  5. Zoion
    Member
    Posted 7 years ago #


    <?php if (is_home()) {
    echo "this is the house of milk and tar
    "; }
    else {
    echo '<a (href) ="<?php echo get_settings('home'); ?>">this is the house of milk and tar</a>'; } ?>

    It didn't paste right the first time, for some reason. (So that explains the double quote issue, and miklb's solution didn't work either.)

    The href isn't really in like that in my code, I did that so it shows up.

  6. sadish
    Member
    Posted 7 years ago #

    the code I wrote , does not look good when pasted.

    Try this.
    http://pastebin.ca/175323

  7. Zoion
    Member
    Posted 7 years ago #

    Worked perfect, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic