Basic functions needed by our others plugins and templates.
As of April 2026, Klan1 Common WP Functions is a WordPress klan1 plugin with 10 active installations and a 0/5 rating0. It has been downloaded 2.0K+ times in total. Requires WordPress 2.7+ and PHP false+. Available on WordPress.org since 2013. Last updated 10 years ago — may have compatibility concerns. Top alternative: Klan1 WP List Subpages.
This functions are for those needs to resize images on their templates or plugins all the time.
FUNCTION: k1_get_post_thumb_url
DESCRIPTION
string k1_get_post_thumb_url(int $post_id)
This function return the URL for the FEATURED IMAGE (full sized) defined in a POST/PAGE even if the upload is no on the actual post. If is not defined returns the FIRST image if there is at least one.
Returns NULL if no jpg,png or gif images as attachments.
USAGE EXAMPLE
<?php echo k1_get_post_thumb_url($post_id); ?>
PARAMETERS
$post_id If is empty, we will try to get the POST ID from the global $post varFUNCTION: k1_get_post_timthumb_img_url
DESCRIPTION
string k1_get_post_timthumb_img_url(int $post_id, int $width, int $height, int $crop, char $align, int $quality)
Returns the IMAGE full URL using…
| WordPress | 2.7+ requiredTested up to 4.2.39 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.