• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / featured-content.php


Lines:

1 to 44 of 44
<?php

/**
 * The template for displaying featured content
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
?>

<div id="featured-content" class="featured-content">
	<div class="featured-content-inner">
	<?php
    
/**
 * Fires before the Twenty Fourteen featured content.
 *
 * @since Twenty Fourteen 1.0
 */
    do_action( 'twentyfourteen_featured_posts_before' );

    $featured_posts = twentyfourteen_get_featured_posts();
  foreach ( (array) $featured_posts as $order => $post ) :
    setup_postdata( $post );

    // Include the featured content template.
    get_template_part( 'content', 'featured-post' );
    endforeach;

    
/**
 * Fires after the Twenty Fourteen featured content.
 *
 * @since Twenty Fourteen 1.0
 */
    do_action( 'twentyfourteen_featured_posts_after' );

    wp_reset_postdata();
  ?>
	</div><!-- .featured-content-inner -->
</div><!-- #featured-content .featured-content -->
 

 View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • twentyfourteen_get_featured_posts() – Getter function for Featured Content Plugin.

      Call hooks

      1 to 2 of 2
      • twentyfourteen_featured_posts_after – action
      • twentyfourteen_featured_posts_before – action
      File name: featured-content.php
      Plugin ref: Twenty Fourteen
      Version: 3.5
      Deprecated?: No
      API Letters: C,F,P

      Published: 19th December 2019 | Last updated: 19th December 2019

      Primary Sidebar

      Information

      File name: featured-content.php
      Plugin ref: Twenty Fourteen
      Version: 3.5
      Deprecated?: No
      API Letters: C,F,P

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.27
      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:  wp-a2z.org
      © Copyright WordPress a2z 2014-2023. All rights reserved.


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

      • Home
      • Blog
      • Sitemap
      • Sites