How to Populate the pageviews_count custom field ?
-
Hi,
I’m using a custom function to order CPT by popular ones, depending on the custom field “burst_total_pageviews_count“
the problem is that when posts have 0 visits they don’t show at all; the burst custom field neither. That’s normal.
Is there a way to populate the “burst_total_pageviews_count” field with number “1” if empty, or not yet generated for a post.
Thanks in advance for your help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to Populate the pageviews_count custom field ?’ is closed to new replies.