Display counter only if number is greater than 0
-
elseif(!$vortex_like_dislike['v-switch-anon-counter'] || is_user_logged_in()){ return '<span class="vortex-p-like-counter '. $id.'">'.vortex_system_get_total_likes().'</span>'; }
The above mentioned code is used to display the total count. I want to hide it if it’s == 0
Thank you for your help.
- The topic ‘Display counter only if number is greater than 0’ is closed to new replies.