Title: Ad is always the same using PHP code
Last modified: November 9, 2022

---

# Ad is always the same using PHP code

 *  Resolved [eduardiko](https://wordpress.org/support/users/eduardiko/)
 * (@eduardiko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/ad-always-the-same-using-php-code/)
 * Hello,
 * The banner/group in top of the page is added using PHP: <?php echo adrotate_group(
   2); ?> and the banners/groups in the body are added using the shortcode: [adrotate
   group=”2″]. I use the same group/banner repeated in different parts of the page.
 * The banner group has 3 diferent adds, and every time i refresh the page they 
   change in the banners/groups that are in the body, the ones using shortcode. 
   BUT NOT in the banner/group that is in the top of the page, always showing the
   same one. I need to solve this, please could you help?
 * Thanks in advance.
    -  This topic was modified 3 years, 7 months ago by [eduardiko](https://wordpress.org/support/users/eduardiko/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fad-always-the-same-using-php-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/ad-always-the-same-using-php-code/#post-16182477)
 * Do the other 2 ads show any errors in the dashboard?
    Did you clear the sites
   cache?
 *  Thread Starter [eduardiko](https://wordpress.org/support/users/eduardiko/)
 * (@eduardiko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/ad-always-the-same-using-php-code/#post-16182544)
 * Solved. Thanks Arnan.
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/ad-always-the-same-using-php-code/#post-16183111)
 * What was the issue?

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

The topic ‘Ad is always the same using PHP code’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/ad-always-the-same-using-php-code/#post-16183111)
 * Status: resolved