Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$attachments = new Attachments( 'attachments' ); // 'attachments' is your instance name
if( $attachments->exist() ) : ?>
<?php while( $attachments->get() ) : ?>
Attachments data to go here
<?php endwhile; ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.