twentyfourteen_featured_content_post_ids

A last try to show posts, in case the Featured Content plugin returns no IDs.

Description

twentyfourteen_featured_content_post_ids( $featured_ids ); 

Parameters (1)

0. $featured_ids
The featured ids.

Usage

  1. if ( !function_exists( 'twentyfourteen_featured_content_post_ids' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4. // The featured ids. 
  5. $featured_ids = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentyfourteen_featured_content_post_ids($featured_ids); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/wpcom.php  
  1. function twentyfourteen_featured_content_post_ids( $featured_ids ) { 
  2. if ( empty( $featured_ids ) ) { 
  3. $featured_ids = array_slice( get_option( 'sticky_posts', array() ), 0, 6 ); 
  4.  
  5. return $featured_ids;