You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know php and developing Wordpress themes fairly well ( but still consider myself a n00b) and am having trouble creating a function to use with this alternative for featured images. I am trying to pass the wp_get_attachment_image_src( ) call using this :
function tpp_custom_img( $thumb_size, $image_width, $image_height ) {
Hi!
I know php and developing Wordpress themes fairly well ( but still consider myself a n00b) and am having trouble creating a function to use with this alternative for featured images. I am trying to pass the wp_get_attachment_image_src( ) call using this :
function tpp_custom_img( $thumb_size, $image_width, $image_height ) {
global $post;
$params = array( 'width' => $image_width, 'height' => $image_height );
$url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID, '' ), $thumb_size );
$custom_img_src = matthewruddy_image_resize( $url[0], $params );
return $custom_img_src;
}
But it is not working. please help.
The text was updated successfully, but these errors were encountered: