Love it!
-
A great addition to a great theme! however, I don’t know why I couldn’t get image attachments to show descriptions?, I had to add a function and change the code in image.php in the parent theme to do it!
In case anyone else has the same issue:
in functions.php for blogsonry theme
function wp_get_attachment( $attachment_id ) { $attachment = get_post( $attachment_id ); return array( 'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), 'caption' => $attachment->post_excerpt, 'description' => $attachment->post_content, 'href' => get_permalink( $attachment->ID ), 'src' => $attachment->guid, 'title' => $attachment->post_title ); }
In image.php for twentythirteen parent theme
<div class="entry-description"> <?php $attachment_meta = wp_get_attachment(); echo $attachment_meta['description'];?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> </div>
If you need to do this, be sure to add image.php from twentythirteen to the blogsory child theme folder! Also, do so at your own risk!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Love it!’ is closed to new replies.