You might have face problem displaying Post Views for the CPT especially if your website is a newspaper, property listing or classified. In this tutorial, i will show you how to create it with few lines of code in JetEngine Crocoblock.
In addition to that it covers how to show total number of CPT.
Code to be inserted in Child theme:
$meta_values = get_post_meta( get_the_ID(), "posts-count", true);
$v2 = (int)$meta_values + 1;
update_post_meta( get_the_ID(), 'posts-count', $v2);
Download Elementor:
https://elementor.com/?ref=16401
Download Crocoblock:
https://crocoblock.com/?ref=4088
Need to build dynamic websites?
https://softemblems.com
Follow me on Social Media
Facebook : / mxtchamkani
Instagram : / moxet
Twitter : / sokaniwaal
Track: Peruvian Woods — Dave Osorio [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Peruvian Woods — Dave Osorio | Free B...
Free Download / Stream: https://alplus.io/peruvian-woods
Watch video Display Post Views & CPT Count with Crocoblock Jetengine | Elementor | WordPress online without registration, duration hours minute second in high quality. This video was added by user Moxet Khan 06 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,70 once and liked it 27 people.