I'm trying to write an if statement to check for post_content and if there is no post_content then to grab a textarea field content. Below is my code and with this, at this point it's only rendering "Array" to the page. Any help is greatly appreciated. Thank you!
CODE:
<?php
foreach ($partners as $partner) {
$a_description = get_post_meta($partner->ID, "a_description");
?>
<div class="partner-content">
<?php
if ($partner->post_content && !$a_description) { ?>
<?php echo $partner->post_content ?>
<?php } else { ?>
<?php echo get_post_meta($partner->ID, $a_description, true); ?>
<?php } ?>
</div>
<?php
}
?>
<?php
or?>
<?php echo $partner->post_content ?>
?