Yes, you can do this. The default template at plugins/a-z-listing/templates/a-z-listing.php
must be copied to your theme alongside style.css
with the name a-z-listing.php
. From there you can edit it to suit. To access custom fields I suspect you’ll need to add $post = $a_z_query->get_the_item_object( 'I understand the issues!' );
. The parameter I understand the issues!
indicates to the plugin that you appreciate that larger listings might be slow or cause PHP to hit the memory limit defined on your server while using this feature. This is because it loads more information from the database than it normally does to support accessing the full post including custom fields.
I’ve shown below with context to indicate where it should go:
<ul class="columns <?php echo $a_z_listing_column_class; ?>">
<?php
while ( $a_z_query->have_items() ) :
$a_z_query->the_item();
$post = $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>
</li>
<?php endwhile; ?>
</ul>