brooklyndesignstudio

Post Views Counter

Dec 16th, 2020 (edited)
608
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Add Shortcode to ACF Textarea Field */
  2. [pvc_stats postid="" increase="1" show_views_today="0"]
  3.  
  4. /* Add PHP to functions.php to allow shortcodes */
  5. add_filter('acf/format_value/type=textarea', 'do_shortcode');
  6.  
  7. /* CSS Styling for Number */
  8. /*------------------------------------------------*/
  9. /*----------- [ POST VIEWS COUNTER ] -------------*/
  10. .dmach-acf-value {
  11.     font-family: Muli;
  12.     font-size: 17px;
  13.     font-weight: 500;
  14. }
  15.  
RAW Paste Data