Title: Adding plugin to Conditional Tags?
Last modified: August 18, 2016

---

# Adding plugin to Conditional Tags?

 *  [Tommy White](https://wordpress.org/support/users/twdesigns/)
 * (@twdesigns)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/)
 * 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)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345384)
 * 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 ?>
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345391)
 * 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…
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345392)
 * Or using pastebin….
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345394)
 * But then you’re not posting code _`in`_ the forums. `;)`
 *  Thread Starter [Tommy White](https://wordpress.org/support/users/twdesigns/)
 * (@twdesigns)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345396)
 * Thanks! Going to go give it a try now. =)
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345397)
 * Right. The point. Code’s not very good here….
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345398)
 * vkaryl, as some like to say:
 * +1
 *  Thread Starter [Tommy White](https://wordpress.org/support/users/twdesigns/)
 * (@twdesigns)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345409)
 * 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.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 8 replies
 * 3 participants
 * Last reply from: [Tommy White](https://wordpress.org/support/users/twdesigns/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/adding-plugin-to-conditional-tags/#post-345409)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
