I’m trying to get the content to display below the title. I’m unable to get this to work. Would you mind letting me know what’s wrong with the following.
while ( $a_z_query->have_items() ) :
$a_z_query->the_item();
$a_z_query->get_the_item_object( 'I understand the issues!' );?>
<li>
<a href="<?php $a_z_query->the_permalink(); ?>">
<?php $a_z_query->the_title(); ?></a><br />
<?php $a_z_query->the_content(); ?>
Error I’m getting is:
Fatal error: Call to undefined method A_Z_Listing\Query::the_content()
-
This reply was modified 5 years, 4 months ago by jdinsmore.