Ok, here is how the thumbnail url should be called:
<header <?php if ( has_post_thumbnail($currentpageid) ) { ?> style="background-image: url(<?php echo $page_thumb['0'];?>)"<?php }?>></header>
Related Posts:
- How to output thumbnail twice in a loop
- Pages inside a page (with thumbnails)
- Customize WooCommerce Product Images (Placement and size) [closed]
- Including post thumbnail url in loop’s post object to reduce number of queries
- WP Loop. If featured image is a panorama (3:1 ratio) execute some code
- Pulling in featured image into default recent posts widget
- Closing the loop…featured image variable based on post id
- WordPress get post thumbnail url
- Default featured image set as background image [closed]
- How can I access a post’s feature image outside the loop?
- How to check all items in a loop have post thumbnail?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- wp_get_attachment_url not fetching URL?
- Pages with a loop (index, archive) are loading the first image as post_thumbnail
- Randomly Display One Image From a 10-Image For Loop
- Display Featured Image
- Place the Featured image on a post, before the first via code
- Counting the posts of a custom WordPress loop (WP_Query)?
- How to split a loop into multiple columns
- Is it necessary to reset the query after using get_posts()?
- Is there any difference between the_title() and echo get_the_title()?
- Cleanest Way to Select Every Second Element in a Loop?
- Pagination not working on home page
- Get post by page name or slug
- save_post + insert_post = infinite loop
- Get ID of a page containing secondary loop in content
- is_home, and is_front_page conditional problem
- ACF Repeater loops and resets – where is the reset_rows() documentation? [closed]
- Why do themes have `while( have_posts() )` in templates like single.php?
- What is best way passing variables to theme templates and using them different places like widgets?
- Apply styling only to first page sticky posts
- No srcset for hard-cropped thumbnails
- Exclude category by slug for for each loop
- pop-up lighbox with AJAX
- WordPress Loop Through Particular Pages
- Load comments per post on click with AJAX
- The main Loop is not starting in a custom blog template page
- Save image as featured image
- connect last post with first post
- Chopping up a large ajax request of around 200 posts [closed]
- Custom loop with conditional statement to separate each terms
- taxonomy tags 404 to custom post types
- Breaking the loop?
- How to removes all instances of thumbnails displayed in my theme?
- Get ID of featured image using “get_post_thumbnail_id(the_ID())” – without printing to screen?
- woocommerce stored variable
- A smarter way to display multiple loops inside a page template
- Remove product category placeholder image (Woocomerce)
- How to print out menu names in the foreach loop?
- How do I style the first two posts of a loop
- Do I need to use The Loop on pages?
- How to get the role id from the role name?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- get_post_thumbnail_id() Doesn’t return value [closed]
- Is wp_reset_postdata() redundant after the main loop?
- Exclude first post (sticky or not) from the loop using query_posts()
- How to display the featured image for each post?
- While loop with bootstrap [closed]
- Need to add class to first element in a foreach loop
- Scrolling Posts with Ajax
- How to create a multidimensional array with multiple loops
- how to replace get_template_part(‘loop’,’tag’) with explicit styled version?
- How to create custom popup in shop page on every loop products?
- Getting posts link in WordPress
- Loop through an array inside a class using foreach [closed]
- using wp_get_attachment_image_src in foreach loop
- Grabbed Post ID under WP loop, but still couldn’t Print Post title
- Using Image Sizes for Custom Post Types outside the Loop
- How to separate posts loop in to two columns? [duplicate]
- query_posts clarification needed
- Blank content php code not parsing advanced custom fields gallery add-on [closed]
- Adding first and last classes to three column layout in Bones boilerplate
- Does search.php autofilter The Loop?
- “the_excerpt” in loop just keeps repeating first post?
- wpdb inside foreach loop only returns first result – 2 other similar cases found [closed]
- Using jQuery .after inside loop
- Add 2 values to post__not_in
- Page Navigation Outside the Loop
- How to loop specific Category menu from archive page?
- How can I pass additional params to a shortcode while in a loop?
- Add all category as classes in foreach loop
- Exclude posts from loop by term
- Featured image size always cropped bottom
- thumbnail crop not working
- How to avoid appending “null” in Ajax?
- Alternative layout the loop
- Why loop renders only last metabox from array? [closed]
- Structure and Display Content from Multiple Pages on Single Page
- Creating a archive for taxonomy terms, not the term results
- This webpage has a redirect loop issue with SSL page
- Buddypress Group Activity Loop Filter activity type [closed]
- Stuck with conflicting loops on page template
- How to get current page id and compare it to looped pages inside the same page?
- Show amount of posts created today above loop?
- How to create WordPress loop with combination of 4 and 2 columns twitter-bootstrap?
- posts_nav_link() not working on index.php
- How to add custom HTML markup and classes to the_content()?
- $do_not_duplicate is not working in genesis theme
- Loop displays current page
- Hide old posts each year