• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Parsed Source / Parsed: 49910
  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 );

  }
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Source ref: Genesis_Breadcrumb::get_attachment_crumb() – Get breadcrumb for single attachment, including any parent crumbs.
Parse count / Source file date: 1569839049
MD5 hash: 9295bbf018675885343be3a79bd435ba

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites