showCategory('PHP');

Output additional WP media sizes

<?php
global $_wp_additional_image_sizes;
var_dump( $_wp_additional_image_sizes );
?>

Showing 4 lines of 47 total lines in this snippet.

Return short text snippet function

function textSnippet($string,$length=200){
  return preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length+1));
}

Showing 3 lines of 3 total lines in this snippet.