Home Forums Plugin Support WP User Frontend Pro wp_get_attachment_image_src(863,'large')

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  zellermaniac 5 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6350

    zellermaniac
    Participant
    Post count: 40

    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];?>
    
    #6361

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #6363

    zellermaniac
    Participant
    Post count: 40
    
    
    the_author_meta( 's-backgroundimage-1', $author_id );
    

    change with get

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

    Now it works.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘wp_get_attachment_image_src(863,'large')’ is closed to new replies.