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
- modify default HAVE_POSTS() Loop without inserting new variable (i.e. $loop->HAVE_POSTS)
- get_posts and wp_autop (remove filter)
- Trouble preventing duplicate posts between 2 loops on homepage
- Display latest posts using WP Loop with different size divs
- Can’t see custom field after the Loop [closed]
- How to fix pagination for custom loops?
- Get gallery and product gallery images full size
- Display articles related to a custom field on a page
- How to fix pagination for custom loops?
- Combining external feed into post loop
- Variable not working in sidebar loop
- How to strip thumb from widget
- query_posts ignores the argument
- Building theme so user can change header image [closed]
- The Loop isn’t working
- Need some help with “the_widget()” function
- Get last 5 days with posts
- WordPress Multiple Loop: Home/Archives Page, with pagination
- Stuck with conflicting loops on page template
- Is there a way to target only images within the loop?
- Code to check amount of blog posts and add css
- Placing the content of one post in two side by side columns, newspaper style
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Get query result before posts are displayed?
- WordPress Group By Problem
- Conditional Check in The Loop’s Parameters
- Twitter bootstrap carousel multiple items in carousel
- Loop to get current parent page “content” and his children content
- the_post_thumbnail unless video id is added
- Display First posts without the default featured image
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- trying to write a variable into a wp_query, need help!
- Display all existing members
- Add Div IDs dynamically to CSS
- Why is my pagination showing up?
- How to add excerpt in loop in Twenty Eleven theme?
- Combine Query and Select Database to create directory loop
- My custom query not detecting the correct category
- Showing related posts (custom post type) outside of the loop
- Same Loop on Multiple Pages
- display only parent replies count in index.php
- Changing the loop w/o killing category links
- show posts from one category with comments only
- 2 loops in blog homepage
- using the loop on a page
- Loop not showing up on page template
- Thumbnails for media Library images
- I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image
- Custom loop page with post navigation
- Change the way wordpress outputs images or image galleries
- get all page templates
- the loop – how to control whether wp or plug-in runs it
- One loop for sticky, one for all the rest – how, without specifying category?
- Displaying posts limit: can’t get pagination to display [duplicate]
- Exclude Authors based off date of last post
- stuck with template hierarchy
- Show last post from multiple categories using wp_list_categories
- How to create an identical second loop for attachments?
- Pass WP post content to a jQuery plugin (Fancybox)
- Change loop to display items in order
- Load featured article once in a loop
- Showposts doesn’t show the number of posts indicated
- Paged homepage – requirements?
- Home page loop with pagination problem
- Least Number of Loops to Create Custom Homepage?
- WordPress save thumbnail but don’t show it [closed]
- Automatic adding thumbnail to post
- In Loop Output Place Custom Field Content In Between Paragraphs
- Using in_category for non standard loops
- The Loop for my theme with static front page is not working
- Use Loop or direct database query?
- WordPress loop: Display if posts exist
- Please help me to win the battle with 2 column loop by category
- wordpress showing all posts instead of date range
- An action that runs after each post in the loop on index/archive page?
- Display content from “About Us” page on the Home Page
- In a loop, do not display content that does not have a thumbnail
- Modify my code – which takes the first sentence of the post and use it as a h2 tag – to work outside the loop
- How to end this loop properly?
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Loop from another WP site onto mine
- strange parse error when including a loop template within another template
- Creating mulitple loops in a sub-category page