[wp-testers] Attachment Pages for Non-Standard Post Format Types

Otto otto at ottodestruct.com
Tue Jan 11 19:19:58 UTC 2011


On Tue, Jan 11, 2011 at 2:10 PM, Chip Bennett <chip at chipbennett.net> wrote:
> It's easy enough to work around using get_post_format( $post->post_parent ),
> but to give you an idea of the use case that made me ask the question: for
> my image.php, I display a sidebar of meta information, as well as
> thumbnails/links to previous/next images in the "gallery" (images attached
> to the parent post). But, for an "image" post format type, the image
> attachment will (should?) always be an only child, so I don't want to
> display the thumbnails/links to previous/next images.

Is that even necessary? adjacent_image_link doesn't create output when
there's no prev or next image.

-Otto


More information about the wp-testers mailing list