• Can someome one tell me how to do this? I spent a few hours but It keeps breaking or not executing the script.

    Tag:
    <?php
    if (is_home()) {
    echo ”

      “;
      get_links_list();
      echo “

    “;
    }
    ?>

    In there I want to put:
    <h2><span class=”bigblue”>JAMMING</span> TO:</h2>
    <?php if ((function_exists(‘aspanel’))) { ?>
    <?php aspanel(); ?>
    <?php } ?>

    I tired to stick it in a and etc with echo but that didn’t work and since I’m no programmer maybe someone can tell me the best way to do this?

    I just want this to appear on the home page and another page, which I’ll fix later.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’m not sure I get the point of the echos in the first bit of code, so I hope you don’t mind if I remove them…

    <?php
    if (is_home()) {
    echo "<ul>";
    get_links_list();
    echo "</ul>";
    ?>
    <h2><span class="bigblue">JAMMING</span> TO:</h2>
    <?php if (function_exists('aspanel')) {
    aspanel();
    } // end function_exists
    } // end is_home
    ?>

    Or to flip links with the “JAMMING TO” section:

    <?php if (is_home()) { ?>
    <h2><span class="bigblue">JAMMING</span> TO:</h2>
    <?php if (function_exists('aspanel')) {
    aspanel();
    } // end function_exists
    echo "<ul>";
    get_links_list();
    echo "</ul>";
    } // end is_home
    ?>

    Just realized the echos from your code above were for a <ul> element. I slipped those back in around the get_links_list() line.

    Another reason for not posting code in the forums without them backticks…

    Or using pastebin….

    But then you’re not posting code in the forums. ;)

    Thread Starter Tommy White

    (@twdesigns)

    Thanks! Going to go give it a try now. =)

    Right. The point. Code’s not very good here….

    vkaryl, as some like to say:

    +1

    Thread Starter Tommy White

    (@twdesigns)

    Thanks Kafkaesqui!

    Worked perfectly, but then you already knew it would =)

    Thanks again

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adding plugin to Conditional Tags?’ is closed to new replies.