Title: PHP code problem
Last modified: January 25, 2019

---

# PHP code problem

 *  Resolved [piergiorgio91](https://wordpress.org/support/users/piergiorgio91/)
 * (@piergiorgio91)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/)
 * Hi, i’m trying to use PHP code to insert the Amazon Unit in a custom position.
 * The code is <?php AmazonAutoLinks( array( ‘id’ => 587 ) ); ?>
 * As can you see in this page, it does not appear. Do you know what the problem
   might be?
 * Thank you for your work.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-code-problem-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11132745)
 * Hi,
 * Maybe a caching pluigin enabled?
 * I would do a simple echo test like `<?php echo '<p>testing</p>'; ?>` and see 
   if it appears.
 * Also you should check if the preview page properly displays product by going 
   to Dashboard -> Amazon Auto Links -> Manage Units -> View (of the unit you want
   to check).
 *  Thread Starter [piergiorgio91](https://wordpress.org/support/users/piergiorgio91/)
 * (@piergiorgio91)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11133323)
 * If you see the post now, there is “testing” under google ad. So it’s not a cache
   problem. The unit is contextual and visible.
 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11133420)
 * The single quotes enclosing the ID are the culprit.
 * Can you try this? Simply copy and paste it.
 *     ```
       <?php AmazonAutoLinks( array( 'id' => 587 ) ); ?>
       ```
   
 * Probably you copied it from the Manage Options table. I’ll make sure to fix that
   output in the next update. Thanks for asking.
 *  Thread Starter [piergiorgio91](https://wordpress.org/support/users/piergiorgio91/)
 * (@piergiorgio91)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11133971)
 * Right, I could have seen it alone…
 * Thank you for your support and sorry for the time that I made you lose!
 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11135135)
 * Not at all. Glad to help!
 * Would be appreciated if you could take a few minutes to [write a comment](https://wordpress.org/support/plugin/amazon-auto-links/reviews/)
   on the plugin.
 * Thank you.
 *  Thread Starter [piergiorgio91](https://wordpress.org/support/users/piergiorgio91/)
 * (@piergiorgio91)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11135372)
 * Sure!

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

The topic ‘PHP code problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-auto-links_eeeeee.svg)
 * [Auto Amazon Links - Amazon Associates Affiliate Plugin](https://wordpress.org/plugins/amazon-auto-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-auto-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-auto-links/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-auto-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-auto-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-auto-links/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 6 replies
 * 2 participants
 * Last reply from: [piergiorgio91](https://wordpress.org/support/users/piergiorgio91/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-problem-2/#post-11135372)
 * Status: resolved