Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

excerpt_more Fanwood

By: samikeijonen on Mar 19th, 2012  |  syntax: PHP  |  size: 0.39 KB  |  views: 34  |  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. function fanwood_child_theme_setup() {
  2.  
  3.         /* Get the theme prefix ("fanwood"). */
  4.         $prefix = hybrid_get_prefix();
  5.        
  6.         /* ... to Read more */
  7.         add_filter( 'excerpt_more', 'my_excerpt_more' );
  8.  
  9. }
  10.  
  11. function my_excerpt_more( $more ) {
  12.         $more = '...<p><a class="more-link" href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">Read more &rarr;</a></p>';
  13.         return $more;
  14. }