• I created a shortcode I want to use in my AQL loop. The shortcode needs to grab the ID of the item the loop is currently iterating through, but using get_the_ID() in the shortcode returns the ID of the post/page the loop is placed in, not the one the loop is currently iterating through. How can I get this to properly see the current loop object?

  • The topic ‘Loop item post ID in shortcode?’ is closed to new replies.