Title: using [if] inside [related]
Last modified: February 22, 2021

---

# using [if] inside [related]

 *  [aaronlpatton](https://wordpress.org/support/users/aaronlpatton/)
 * (@aaronlpatton)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-if-inside-related/)
 * I’ve been having issues trying to put an IF statement inside an ACF related loop
   but the IF statement isn’t appearing to work.
 * Does anyone know if there is any limitations to this, and any workarounds?

Viewing 1 replies (of 1 total)

 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-if-inside-related/#post-14083820)
 * Depends on what you want to achieve.

Viewing 1 replies (of 1 total)

The topic ‘using [if] inside [related]’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [polarracing](https://wordpress.org/support/users/polarracing/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/using-if-inside-related/#post-14083820)
 * Status: not resolved