# image-source-control-isc/1.10.1/admin/templates/image_posts_list.php

Image Source Control Lite – Show Image Credits and Captions, version 1.10.1. 28 lines.

- Page: https://pluginprobe.com/plugins/image-source-control-isc/1.10.1/code/admin/templates/image_posts_list.php
- Raw: https://pluginprobe.com/plugins/image-source-control-isc/1.10.1/raw/admin/templates/image_posts_list.php
- Modified: 2018-04-16T11:06:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-source-control-isc/1.10.1/code/admin/templates/image_posts_list.php#L10-L20`.

```php
<?php
if ($images_with_posts->have_posts()) : ?>
    <table class="widefat isc-table" style="width: 80%;" >
        <thead>
            <tr>
                <th><?php _e('Image', 'image-source-control-isc'); ?></th>
                <th><?php _e('Posts', 'image-source-control-isc'); ?></th>
            </tr>
        </thead><tbody><?php

    while ($images_with_posts->have_posts()) :
        $images_with_posts->the_post();
        $_posts = get_post_meta(get_the_ID(), 'isc_image_posts', true);
        if(is_array($_posts) && count($_posts) > 0) : ?>
        <tr>
            <td><a href="<?php echo admin_url('media.php?attachment_id=' . get_the_ID() . '&action=edit'); ?>"><?php the_title(); ?></a></td>
            <td>
                    <ul><?php
                    foreach($_posts as $_post_id) : ?>
                        <li><a href="<?php echo get_edit_post_link( $_post_id ); ?>"><?php echo $_post_id; ?></a></li>
                    <?php endforeach; ?>
                    </ul>
           </td>
        </tr>
    <?php endif; ?>
    <?php endwhile; ?>
    </tbody></table><?php
endif;
```
