SHARE
TWEET

Overwrite title by filters from WP Posts Carousel

teastudio Aug 10th, 2015 1,048 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_wpc_item_title( $title, $params ) {
  2.     $title = '<h4 class="wp-posts-carousel-title">';
  3.             $title .= '<a href="'. $params['post_url'] .'" title="'. $params['post']->post_title .'">'. $params['post']->post_title .'</a>';
  4.     $title .= '</h4>';
  5.  
  6.     return $title;
  7. }
  8. add_filter('wpc_item_title', 'my_wpc_item_title', 1, 2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top