You’re nearly there. The missing ingredient is that you don’t have the Post loaded when you call the_content()
because I am keenly aware of the slowness and breakage it can cause on large listings. You can load the Post by adjusting the loop’s first few lines:
Change:
while ( $a_z_query->have_items() ) :
$a_z_query->the_item();
To:
while ( $a_z_query->have_items() ) :
$a_z_query->the_item();
$a_z_query->get_the_item_object( 'I understand the issues!' );
Note that the argument passed to get_the_item_object
must read exactly I understand the issues!
to indicate to the plugin that you have understood that it might be slow, use a lot of resources, or break due to resource constraints (memory and time).
Once you have called get_the_item_object
you can use all the usual WordPress post-related functionality such as the_content()
.