Guide

Create Additional Image Sizes in WordPress

Adding additional image sizes for use in WordPress themes is really good practice. Letting WordPress create an additional optimally sized image for display later can significantly speed up load times. This gives the user a much better experience. Also with hard cropping we can crop images to a specific size making designers and developer tasks... more

Martin Whitaker 0
Guide

View Counter

function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0 View"; } return $count.' Views'; } function setPostViews($postID) { ... more

Martin Whitaker 0