Title: PHP conditional code
Last modified: January 28, 2023

---

# PHP conditional code

 *  Resolved [Taqi Vaheed](https://wordpress.org/support/users/vaheedxp/)
 * (@vaheedxp)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-conditional-code/)
 * Hello
 * I use geoplugin.net API to fetch the user country name. Based on the country 
   name I want to show or hide some content with php if statement. It works smoothly
   without cache plugin but when the cache plugin is enabled it does not work anymore
   until the cache is deleted. Is this plugin have a solution with this issue?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-conditional-code/#post-16417138)
 * Hi [@vaheedxp](https://wordpress.org/support/users/vaheedxp/)
 * put the API of geoplugin.net inside a shortcode, and then put that shortcode 
   in a Content No Cache element, and you should solve it.
 * I hope it helps
 * Have a great day!
 * Jose

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/content-no-cache/assets/icon-256x256.png?rev=2687570)
 * [Content No Cache | Serve uncached partial content even when you add it to a page that is fully cached.](https://wordpress.org/plugins/content-no-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/content-no-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/content-no-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-no-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-no-cache/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/php-conditional-code/#post-16417138)
 * Status: resolved