'
',
'before_title' => '',
));
}
/* ACF */
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'General Options',
'menu_title' => 'General Options',
'menu_slug' => 'theme-general-options',
'capability' => 'edit_posts',
'redirect' => false
));
}
/* Modify the read more link on the_excerpt() */
function my_excerpt_length($length) {
return 120;
}
add_filter('excerpt_length', 'my_excerpt_length');
function excerpt_readmore($more) {
return '... ' . 'Continue Reading »' . '';
}
add_filter('excerpt_more', 'excerpt_readmore');
function template_chooser($template)
{
global $wp_query;
$post_type = get_query_var('post_type');
if( $wp_query->is_search && $post_type == 'faq' )
{
return locate_template('search-faq.php'); // redirect to archive-search.php
}
return $template;
}
add_filter('template_include', 'template_chooser');
?>