'#1982d1',
'posts_in_columns' => 'off',
);
return apply_filters( 'forever_default_theme_options', $default_theme_options );
}
/**
* Returns the options array for Forever.
*/
function forever_get_theme_options() {
return get_option( 'forever_theme_options', forever_get_default_theme_options() );
}
/**
* Renders the Link Color setting field.
*/
function forever_settings_field_link_color() {
$options = forever_get_theme_options();
?>
#1982d1' ); ?>
'DESC',
'ignore_sticky_posts' => 1,
'post__not_in' => forever_featured_posts(),
'posts_per_page' => '4',
'tax_query' => array( array(
'taxonomy' => 'post_format',
'terms' => array( 'post-format-status', 'post-format-quote', 'post-format-gallery', 'post-format-image' ),
'field' => 'slug',
'operator' => 'NOT IN',
) )
);
$latest = new WP_Query();
$latest->query( $args );
while ( $latest->have_posts() ) {
$latest->the_post();
$latest_post_ids[] = $latest->post->ID;
}
wp_reset_postdata();
}
return $latest_post_ids;
}
add_filter( 'forever-recent-posts', 'forever_recent_four_posts' );
/**
* Flush out the transients used in forever_featured_posts()
*/
function forever_latest_post_checker_flusher() {
// Vvwooshh!
delete_transient( 'latest_post_ids' );
}
add_action( 'save_post', 'forever_latest_post_checker_flusher' );