Advertisement
daymobrew

U-Design - the_excerpt in Portfolio

Sep 4th, 2013
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.64 KB | None | 0 0
  1. --- ../u-design/page-Portfolio1Col.php  2013-07-20 14:30:10.000000000 +0100
  2. +++ page-Portfolio1Col.php  2013-09-04 08:53:30.853100100 +0100
  3. @@ -107,6 +107,9 @@
  4.  <?php              $portfolio_item_description = get_post_meta($post->ID, 'portfolio_item_description', true);
  5.                 if ( $portfolio_item_description ) :
  6.                 echo do_shortcode( __($portfolio_item_description) );
  7. +                else :
  8. +                // If the 'portfolio_item_description' meta value is not set then use the excerpt.
  9. +                echo do_shortcode(get_the_excerpt());
  10.                 endif; ?>
  11.                 <div class="clear"></div>
  12.             </div><!-- end one_half last_column -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement