This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

functions.php

By: jan_dembowski on Jul 14th, 2012  |  syntax: PHP  |  size: 0.69 KB  |  views: 61  |  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. // For http://wordpress.org/support/topic/same-theme-different-appearance-on-two-sites?replies=5
  4. //
  5. if (!function_exists('easel_display_the_content')) {
  6.         function easel_display_the_content() {
  7.                 global $post, $wp_query;
  8.                 if ((is_archive() || is_search()) && (easel_themeinfo('excerpt_or_content_in_archive') == 'excerpt')) {
  9.                         do_action('easel-display-the-content-before');
  10.                         the_excerpt();
  11.                         do_action('easel-display-the-content-after');
  12.                 } else {
  13.                         if (!is_single()) { global $more; $more = 0; }
  14.                         do_action('easel-display-the-content-before');
  15.                         the_excerpt(__('&darr; Read the rest of this entry...','easel'));
  16.                         do_action('easel-display-the-content-after');
  17.                 }
  18.         }
  19. }
clone this paste RAW Paste Data