Hi
How can I check if filebase attachment was added into the post type?
I don't add a shortcode into WYSWIG field now but I call attachments in my post-type like:
<?php if(get_field('zestaw-dokumentow')) {?>
<div class="jwts_tabbertab">
<?php echo do_shortcode('[wpfilebase tag=attachments ]'); ?>
</div>
<?php } ?>
Now can I check if attachent has been added?
I tried the code:
<?php if ( is_attachment() ) { ?>
<div class="jwts_tabbertab">
<?php echo do_shortcode('[wpfilebase tag=attachments ]'); ?>
</div>
<?php } else { ?>
<?php } ?>
It's for regular post type attachemnt, not filebase one and I don't know how to to check if file attachment was added.
Any ideas?