wp_get_attachment_image_src(863,'large')

This topic contains 2 reply and 2 voices, and was last updated by zellermaniac 11 years, 4 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
July 26, 2013 at 9:50 pm 6350
zellermaniac wp_get_attacmet_image_src is not working with string '863','large' not working 863,'lage' wording I need to replace

the_author_meta( 's-backgroundimage-1', $author_id );
to an int. I try but it´s not working.

 <?php $background_image_1 = wp_get_attachment_image_src(863,'large');?>

<?php echo $background_image_1[0];?>
July 27, 2013 at 1:43 am 6361
Tareq Hasan Tareq Hasan

wp_get_attachment_image_src($attachment_id, $size); is perfect. I am not sure what came wrong.

July 27, 2013 at 3:36 am 6363
zellermaniac zellermaniac


the_author_meta( 's-backgroundimage-1', $author_id );

change with get


get_the_author_meta( 's-backgroundimage-1', $author_id );

Now it works.

Viewing 2 Posts - 1 through 2 (of 2 total)