functions - blank page with wp_get_attachment

I want to use the function "wp_get_attachment" but when I use it, my website shows me a blank page while my se

I want to use the function "wp_get_attachment" but when I use it, my website shows me a blank page while my server locally, the function shows me what I want...

I went through the canvas without finding an answer.

I proceed like this:

<div class="credit-photo">
    <h5>
        <?php
            $idPost = get_the_ID();
            $post_thumbnail_id = get_post_thumbnail_id( $idPost );
            $at= wp_get_attachment( $post_thumbnail_id );

            echo $at['description'];
        ?>
    </h5>
</div>

the line that I think problem is :

$at= wp_get_attachment( $post_thumbnail_id );

Do you have an idea ?

Thx !

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745136673a4613235.html

相关推荐

  • functions - blank page with wp_get_attachment

    I want to use the function "wp_get_attachment" but when I use it, my website shows me a blank page while my se

    1小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信