Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar

Sorry for any wrong details. I am totally new to WordPress development. I am running a photo site. On single attachment page, I want to show the details (i.e upload date, filename, size, resolution) of the attached image in the sidebar of that single attachment page. I am trying to use the following function in the single-attachment-sidebar-template.php

<?php wp_get_attachment_metadata( $attachment_id, $unfiltered ); ?>

But it makes the whole sidebar invisible. I am trying to get something like post metabox in the editable interface for the image to be visible on the front in the sidebar area of the single attachment page.

Any help will be greatly appreciated. Thanks in Advance!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s