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!