Want more features on Pastebin? Sign Up, it's FREE!
Guest

functions.php

By: a guest on May 18th, 2012  |  syntax: PHP  |  size: 0.83 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data