Title: [Plugin: Advertising Manager] how to replace &#039;adname&#039; with php code?
Last modified: August 19, 2016

---

# [Plugin: Advertising Manager] how to replace 'adname' with php code?

 *  Resolved [gerald@WPcustoms](https://wordpress.org/support/users/geeman12030/)
 * (@geeman12030)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-how-to-replace-adname-with-php-code/)
 * Hello switzer,
 * I got the plugin running properly on wp3.0.1 and would like to extend the use
   in my template.
    I think it’s just a syntax problem:
 * I want to use a php variable inside the (”) here:
    <?php advman_ad(‘echo $cat_slug;’)?
   >
 * This doesn’t work.
    Can you please help me out with this? using just <?php echo
   $cat_slug; ?> elsewhere on the site returns the category slug without problems.
 * Thanks in advance
    Regards, geeman
 * btw: docs are down again 😉

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

 *  Thread Starter [gerald@WPcustoms](https://wordpress.org/support/users/geeman12030/)
 * (@geeman12030)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-how-to-replace-adname-with-php-code/#post-1622976)
 * Ok I think I found a different solution without moddifying anything which will
   work 🙂
 * Thanks for the great plugin and keep up the good work
 *  [italiapuntonet](https://wordpress.org/support/users/italiapuntonet/)
 * (@italiapuntonet)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-how-to-replace-adname-with-php-code/#post-1623212)
 * I’m also working on this plugin, everything Ok, however I’d like to manage output
   using custom fields, can you pls share your solution?
 * thanks
 *  Thread Starter [gerald@WPcustoms](https://wordpress.org/support/users/geeman12030/)
 * (@geeman12030)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-how-to-replace-adname-with-php-code/#post-1623214)
 * oh this is long ago. I can’t even remember the site where I used it. sorry . 
   I’m lost. you know…build and forget 🙂

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

The topic ‘[Plugin: Advertising Manager] how to replace 'adname' with php code?’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advertising-manager.svg)
 * [Advertising Manager](https://wordpress.org/plugins/advertising-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advertising-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advertising-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advertising-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advertising-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advertising-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gerald@WPcustoms](https://wordpress.org/support/users/geeman12030/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-how-to-replace-adname-with-php-code/#post-1623214)
 * Status: resolved