is_main_query() &&
$query->is_home()
) {
$tax_query = array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array(
'post-format-image',
'post-format-gallery'
),
'operator' => 'NOT IN',
)
);
$query->set( 'tax_query', $tax_query );
}
}
add_action( 'pre_get_posts', 'camise_exclude_post_formats' );
/**
* Adds a Favicon Option to Options Menu
*/
function camise_favicon() {
$favicon = of_get_option( 'custom_favicon', false );
if ( $favicon ) {
echo ''."\n";
}
}
add_action( 'wp_head', 'camise_favicon' );
/**
* Adds CSS stylesheet for Dark Theme style
*/
function camise_theme_style_css() {
$style = of_get_option( 'camise_dark_style_css', false );
if ( $style ) {
echo ''."\n";
}
}
add_action( 'wp_head', 'camise_theme_style_css' );