Show part of the listings on home page list
I'm trying to show part of the listings content in the list that is shown on the home page, search results etc.
I've found the right file to edit:
I've also found the right section (note I've edited the address section to not show on the list for my site):
<p class="listing-phone"><?php echo esc_html( get_post_meta( get_the_ID(), 'phone', true ) ); ?></p>
<p class="listing-address"> </p>
<p class="listing-description"><strong><?php _e( 'Description:', APP_TD ); ?></strong> <?php the_excerpt(); ?> <?php echo html_link( get_permalink(), __( 'Read more...', APP_TD ) ); ?></p>
...I just can't work out the code that I need to use.
The content I want to include is within a div that I'm adding when creating each listing.
I'm able to display the css formatting for the div using the following code (but not the actual content from each listing):
<?php echo '<div id="buybutton"></div>'; ?>
What I need to know is, how do I get it to show the div from the listings (the actual content in the div)?