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
评论列表(0条)