• Resolved zoion

    (@zoion)


    <?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.)

Viewing 6 replies - 1 through 6 (of 6 total)

  • < ?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 ??

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

    Try removing it.

    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.

    Thread Starter zoion

    (@zoion)


    <?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.

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

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

    Thread Starter zoion

    (@zoion)

    Worked perfect, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘its late and I’m tired’ is closed to new replies.