Advanced Custom Field Textarea not Showing (ListingPro Theme)

Question

I’m using the ListingPro Theme from ThemeForest. I’ve added a Custom Field using Advanced Custom Fields as a Textarea. I have it showing at the bottom of Listing Categories.

What I can’t figure out is that it’s only showing when there are no listings on a Listing Category page.

So it looks like this:

Listing Category with no Listings but showing custom text

No Listings

Listing Category with Listing but no Text

Listings no text

This is the code I’m using:

<?php if( $bottom_content = get_field('bottom_content') ) { ?>
    <?php echo $bottom_content ; ?>
<?php } ?>

0
Kenny King 9 months 2021-12-03T22:56:56-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse