Viewing 1 replies (of 1 total)
  • Plugin Author teastudio.pl

    (@teastudiopl)

    you should use a filter “wpc_item_categories” to overwrite html code.
    Try this:

    function custom_wpc_item_categories( $categories,  $params ) {
    	$category = '';
    	if ( $params['show_category'] === 'true' ) {
    		$categories_list = get_the_terms($params['post']->ID, $params['post_type_category']);
    
    		if ( $categories_list ) {
    			$category = '<p class="wp-posts-carousel-categories">';
    			foreach ( $categories_list as $cat ) {
    				$category .=  $cat->name;
    			}
    			$category .= '</p>';
    		}
    	}
    	return $category;
    }
    add_filter('wpc_item_categories', 'custom_wpc_item_categories', 1, 2);
Viewing 1 replies (of 1 total)
  • The topic ‘Remove 'VIEW ALL' link top right hand side’ is closed to new replies.