All ACF posts are still under 1 minute
-
Using ACF on this site.
Following your lead, I am using this in functions.php:
add_filter('rtwp_filter_wordcount', 'up_the_count'); function up_the_count($count) { $ACFcount = array( count( preg_split('/\s+/', get_field('flexible_content', $post->ID) )), count( preg_split('/\s+/', get_sub_field('content', $post->ID) )), count( preg_split('/\s+/', get_field('__news_related_group', 'option') )), count( preg_split('/\s+/', get_sub_field('editable_text', $post->ID) )), count( preg_split('/\s+/', get_field('editable_text', $post->ID) )), count( preg_split('/\s+/', get_sub_field('editable_text') )), count( preg_split('/\s+/', get_field('editable_text') )), count( preg_split('/\s+/', get_field('image_desktop', $post->ID) )), count( preg_split('/\s+/', get_field('subtitle', $post->ID) )), count( preg_split('/\s+/', get_sub_field('title', $post->ID) )), count( preg_split('/\s+/', get_sub_field('description', $post->ID) )), count( preg_split('/\s+/', get_field('related_content', $post->ID) )), ); foreach($ACFcount as $words) { $count += $words; } return $count; }
Still not working correctly – all time is under 1 min. Any thoughts on this?
Thanks,
Eddie
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘All ACF posts are still under 1 minute’ is closed to new replies.