کد زیرو تست کنید :
<?php
$terms = get_the_terms( get_the_ID(), 'post_tag' );
if ( is_wp_error( $terms ) || empty( $terms ) ) {
return;
}
$post_settings = publisher_get_option( 'post-page-settings' );
?>
<div <?php publisher_attr( 'post-terms', 'post-tags clearfix', 'tag' ); ?>>
<span class="terms-label"><i class="fa fa-tags"></i></span>
<?php
$post_settings[15] = intval( $post_settings[15] );
if ( $post_settings[15] > 0 ) {
$terms = array_slice( $terms, 0, $post_settings[15] );
}
foreach ( $terms as $term ) {
$link