Advertisement
teastudio

Overwrite title by filters from WP Posts Carousel

Aug 10th, 2015
1,830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement