Title: _position inside [if] doesn&#8217;t work
Last modified: May 13, 2022

---

# _position inside [if] doesn’t work

 *  Resolved [gerardciclick](https://wordpress.org/support/users/gerardciclick/)
 * (@gerardciclick)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/)
 * Hello,
    I’m using the pod template system and I need a conditional that is only
   executed on the 8th loop. I’ve been trying to use _position inside an [if] but
   it doesn’t work. But if I print it as a variable it works:
 *     ```
       [if field="_position" value="8"]<p>Test</p>[/if] <-- This doesn't work
       {@_position} <-- This works. Prints 1, 2, 3... on each loop.
       ```
   
 * I’m calling the template using a pod shortcode like this: [pods name=”themes”
   template=”tgs-home-artisticspot”]
    If have tried it in version 2.8.10 and the
   lastest 2.8.17.
 * Thank you very much.
 * Gerard.

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15642831)
 * Hi [@gerardciclick](https://wordpress.org/support/users/gerardciclick/)
 * Could you try index instead of position?
 * Cheers, Jory
 *  Thread Starter [gerardciclick](https://wordpress.org/support/users/gerardciclick/)
 * (@gerardciclick)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15642845)
 * Hi [@keraweb](https://wordpress.org/support/users/keraweb/)
    It doesn’t work.
   I have tried index and _index and all this methods and none of them works:
 *     ```
       [if field="_position" value="8"]Test1[/if]
       [if _position="8"]Test2[/if]
       [if field="_index" value="8"]Test3[/if]
       [if field="index" value="8"]Test4[/if]
       ```
   
 * Thank you very much.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15642916)
 * Hi [@gerardciclick](https://wordpress.org/support/users/gerardciclick/)
 * Okidoki, then please file a complete bug report so we can get this into the maintenance
   release patches!
 * pods.io/submit
 * Cheers, Jory
 *  Thread Starter [gerardciclick](https://wordpress.org/support/users/gerardciclick/)
 * (@gerardciclick)
 * [4 years ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15648571)
 * Thank you [@keraweb](https://wordpress.org/support/users/keraweb/) , I have submitted
   an issue on Github: [https://github.com/pods-framework/pods/issues/6513](https://github.com/pods-framework/pods/issues/6513)
 * Cheers, Gerard
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [4 years ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15648983)
 * Seen it, thank you!
 * Cheers, Jory

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

The topic ‘_position inside [if] doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/_position-inside-if-doesnt-work/#post-15648983)
 * Status: resolved