Title: Is the PHP code still valid?
Last modified: August 21, 2016

---

# Is the PHP code still valid?

 *  [MrRedd](https://wordpress.org/support/users/mrredd/)
 * (@mrredd)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/is-the-php-code-still-valid/)
 * Hi there..I am trying to get the WP Ebay Ads plugin to work and am not having
   any luck when using the php code you supplied on the installation page.
 * Is this still the exact code that I should use inside of the loop..on the single.
   php page?
    `<?php if(function_exists('wp_ebay_ads')) {wp_ebay_ads($post->ID);}?
   >`
 * Or has something changed now?
 * I did get it working when using the short code on the post itself..but I want
   it in the templates.
 * Thank you for your help..and your plugin.
 * [https://wordpress.org/plugins/wp-ebay-ads/](https://wordpress.org/plugins/wp-ebay-ads/)

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

 *  [aehageman](https://wordpress.org/support/users/aehageman/)
 * (@aehageman)
 * [12 years ago](https://wordpress.org/support/topic/is-the-php-code-still-valid/#post-4759822)
 * hello
    <?php if(function_exists(‘wp_ebay_ads’)) {wp_ebay_ads($post->ID);}?>
 * Does not seem to work for me either..
 *  [Roybretton](https://wordpress.org/support/users/roybretton/)
 * (@roybretton)
 * [12 years ago](https://wordpress.org/support/topic/is-the-php-code-still-valid/#post-4759823)
 * Hi There,
 * I have the same problem,I need an answer too! Any help appreciated, thank yoy.

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

The topic ‘Is the PHP code still valid?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ebay-ads.svg)
 * [WP eBay Ads](https://wordpress.org/plugins/wp-ebay-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ebay-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ebay-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ebay-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ebay-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ebay-ads/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Roybretton](https://wordpress.org/support/users/roybretton/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/is-the-php-code-still-valid/#post-4759823)
 * Status: not resolved