Advertisement
srikat

functions.php

Oct 25th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. /**
  2.  * Use Full Content for Features in Grid Loop
  3.  *
  4.  * @author Bill Erickson
  5.  * @link http://www.billerickson.net/code/full-content-features-in-grid-loop
  6.  *
  7.  * @param string $option
  8.  * @return string $option
  9.  */
  10. function be_full_content_for_features( $option ) {
  11.   if( in_array( 'feature', get_post_class() ) && is_home() )
  12.         $option = 'full';
  13.  
  14.     return $option;
  15. }
  16. add_filter( 'genesis_pre_get_option_content_archive', 'be_full_content_for_features' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement