[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyone/template-parts/excerpt/ -> excerpt-link.php (source)

   1  <?php
   2  /**
   3   * Show the appropriate content for the Link post format.
   4   *
   5   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty_One
   9   * @since Twenty Twenty-One 1.0
  10   */
  11  
  12  // Print the 1st instance of a paragraph block. If none is found, print the content.
  13  if ( has_block( 'core/paragraph', get_the_content() ) ) {
  14  
  15      twenty_twenty_one_print_first_instance_of_block( 'core/paragraph', get_the_content() );
  16  } else {
  17  
  18      the_content();
  19  }


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref