Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Shortcode in Advanced Query Loop – not aware of the query loop item

Home / Forums / Kadence Blocks / Shortcode in Advanced Query Loop – not aware of the query loop item

This topic is: Resolved
[Resolved]
Posted in: Kadence Blocks
April 16, 2024 at 12:59 pm

Hi, all,

I’m using the Advanced Query Loop (version 2.3.1) and I need to put a shortcode in the Query Card. I expected the shortcode to be aware of the loop item.
However, I found out that the shortcode in all cards is using the last loop item as context.

I didn’t dig much deeper, but it seems that the Query Loop renderer is iterating the loop without rendering the shorcodes. The shorcode rendering might be happening afterwards, when get_the_ID() is set to the final loop item.

Could you check if the shortcodes could be expanded in the WP query loop?

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.