
functions.php
By: a guest on
May 18th, 2012 | syntax:
PHP | size: 0.83 KB | hits: 38 | expires: Never
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
automatic_feed_links();
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '',
'after_title' => '',
));
function exclude_category($query) {
if ( $query->is_home ) {
$query->set('cat', '-3, -4');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');
add_theme_support( 'post-thumbnails' );
function get_the_news ($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
return $content;
}
?>