Advertisement
Guest User

functions.php

a guest
May 18th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Classic_Theme
  5.  */
  6.  
  7. automatic_feed_links();
  8.  
  9. if ( function_exists('register_sidebar') )
  10.     register_sidebar(array(
  11.         'before_widget' => '<li id="%1$s" class="widget %2$s">',
  12.         'after_widget' => '</li>',
  13.         'before_title' => '',
  14.         'after_title' => '',
  15.     ));
  16.    
  17.     function exclude_category($query) {
  18.         if ( $query->is_home ) {
  19.             $query->set('cat', '-3, -4');
  20.         }
  21.         return $query;
  22.         }
  23.     add_filter('pre_get_posts', 'exclude_category');
  24.    
  25.     add_theme_support( 'post-thumbnails' );
  26.    
  27.     function get_the_news ($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
  28.         $content = get_the_content($more_link_text, $stripteaser, $more_file);
  29.         $content = apply_filters('the_content', $content);
  30.         $content = str_replace(']]>', ']]&gt;', $content);
  31.         return $content;
  32.     }
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement