I'm trying to show a link to the full size image of an attached image. I took a code for Wordpress' Twelve Thirteen theme:
<?php $metadata = wp_get_attachment_metadata(); printf( '<span class="attachment-meta full-size-link"><a href="%1$s" rel="lightbox">%3$s</a></span>', esc_url( wp_get_attachment_url() ), esc_attr__( 'Link to full-size image'), __( 'View Full Size' ), $metadata['array'], $metadata['array'] ); ?>
It shows on the twelve thirteen theme with a magnifying class and the text 'Full Resolution (width x height). It doesn't show the theme 'terrifico' I'm using. What am I doing wrong?