[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/theme-compat/ -> embed.php (source)

   1  <?php
   2  /**
   3   * Contains the post embed base template
   4   *
   5   * When a post is embedded in an iframe, this file is used to create the output
   6   * if the active theme does not include an embed.php template.
   7   *
   8   * @package WordPress
   9   * @subpackage oEmbed
  10   * @since 4.4.0
  11   */
  12  
  13  get_header( 'embed' );
  14  
  15  if ( have_posts() ) :
  16      while ( have_posts() ) :
  17          the_post();
  18          get_template_part( 'embed', 'content' );
  19      endwhile;
  20  else :
  21      get_template_part( 'embed', '404' );
  22  endif;
  23  
  24  get_footer( 'embed' );


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref