protected function get_attachment_crumb() { $post = get_post(); $crumb = ''; if ( $post->post_parent && $this->args['heirarchial_attachments'] ) { // If showing attachment parent. $attachment_parent = get_post( $post->post_parent ); $crumb = $this->get_breadcrumb_link( get_permalink( $post->post_parent ), '', $attachment_parent->post_title, $this->args['sep'] ); } $crumb .= single_post_title( '', false ); /** * Filter the Genesis attachment breadcrumb. * * @since 2.5.0 * * @param string $crumb HTML markup for the attachment breadcrumb. * @param array $args Arguments used to generate the breadcrumbs. Documented in Genesis_Breadcrumbs::get_output(). */ return apply_filters( 'genesis_attachment_crumb', $crumb, $this->args ); }