Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • You will need to edit your theme files where applicable.

    Here is a basic implementation:

    <?php
      if( function_exists( 'attachments_get_attachments' ) )
      {
        $attachments = attachments_get_attachments();
        $total_attachments = count( $attachments );
        if( $total_attachments ) : ?>
          <ul>
          <?php for( $i=0; $i<$total_attachments; $i++ ) : ?>
            <li><?php echo $attachments[$i]['title']; ?></li>
            <li><?php echo $attachments[$i]['caption']; ?></li>
            <li><?php echo $attachments[$i]['id']; ?></li>
            <li><?php echo $attachments[$i]['location']; ?></li>
            <li><?php echo $attachments[$i]['mime']; ?></li>
            <li><?php echo $attachments[$i]['filesize']; ?></li>
          <?php endfor; ?>
          </ul>
        <?php endif; ?>
    <?php } ?>

    I used this:

    <?php if ( ! post_password_required() && ( is_page() ) ) : ?>
    YOUR CODE HERE
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)