Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get page thumbnail id wordpress

$featuredImage = wp_get_attachment_url(get_post_thumbnail_id(get_queried_object_id()));
 
PREVIOUS NEXT
Tagged: #page #thumbnail #id #wordpress
ADD COMMENT
Topic
Name
1+2 =