Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Add Shortcode to ACF Textarea Field */
- [pvc_stats postid="" increase="1" show_views_today="0"]
- /* Add PHP to functions.php to allow shortcodes */
- add_filter('acf/format_value/type=textarea', 'do_shortcode');
- /* CSS Styling for Number */
- /*------------------------------------------------*/
- /*----------- [ POST VIEWS COUNTER ] -------------*/
- .dmach-acf-value {
- font-family: Muli;
- font-size: 17px;
- font-weight: 500;
- }
RAW Paste Data