How to get featured image from Wordpress?

Let’s learn how to get featured image from Wordpress. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

Get Featured Image in pseudo elements( i.e. :before or :after) - WordPress

I want to get WordPress featured image in pseudo elements. I've used it in inline style using following code <?php $thumb_url = wp_get_attachment_image_src(get_post_thumbnail_id($whatWeDo_post->ID), 'single-post-thumbnail' ); ?> <div style="background-image: url(<?php echo $thumb_url[0]; ?>);"> But I want to use it in pseudo elements

Answer:

Option 1 Your main concern here is caching. You don't want to write the background-image style into...

Read more

w3debugger at Stack Overflow Mark as irrelevant Undo

Other solutions

In WordPress, when using Featured Image how do I get just the URI to the image? Not the whole bit of HTML?

I have read this: http://justintadlock.com/archive... I can add an image. I can display an image. But I also have a plugin that I want to access the Feature Image image - sans all the HTML - and email out the URL for the image. How can I get the image...

Answer:

You can use the follwing to retrieve URL for an attachment thumbnail. $thumb_url = wp_get_attachment...

Read more

Azizur Rahman at Quora Mark as irrelevant Undo

How to use featured image as a thumbnail in wordpress?

I am using 2012 theme. When I set a featured image and view it on my home page, it shows the full image. How do I turn it into a thumbnail like: http://www.crunchyroll.com See how ...show more

Answer:

By default Twenty Twelve showing featured image on the top of the title..which you need to modify completely...

Read more

L32SXVUZZ22WVHYT6QYPXLRBHQ at Yahoo! Answers Mark as irrelevant Undo

Answer:

Close out Safari (exit to home screen, double tap home button, press and hold icon then tap close on...

Read more

Gabriel Harper at Quora Mark as irrelevant Undo

How can I get dlvr.it to autopost from my WordPress blog with the image in timthumb.php?

I really like this new autopost service, but I can't get the images to show when autoposting to Facebook. I use TimThumb for the images on my Wordpress blog, and I can't get them to play nice with each other.

Answer:

I use a plugin to set the Featured Image from my post as the thumbnail for Facebook. The plugin is called...

Read more

Jason Hamilton at Quora Mark as irrelevant Undo

Remove header image on image post pages in Wordpress

Wordpress: help me get rid of the header image on image post pages. I'm in the process of learning to edit Wordpress themes and I'm stuck on a particular problem: how get rid of the header image on image post pages. Currently, when a thumbnail for an...

Answer:

In header.php find: $header_image = get_header_image(); if ( $header_image ) : and replace it...

Read more

jammy at Ask.Metafilter.Com Mark as irrelevant Undo

Help me better understand how WordPress handles images.

I need to better understand how WordPress works with images, how they load onto a page and the best way to automate the process to keep a WordPress self-hosted site running fast.. I don't understand how the WordPress deals with images out of the box...

Answer:

Have you read through Using Images in the WordPress Codex? You might also be interested in the add_image...

Read more

bonsai forest at Ask.Metafilter.Com Mark as irrelevant Undo

How can I turn an image into a wordpress site?

I'm not a website developer at all, but I've just been handed the task of making a "simple" website for a project at work. Basically, an artist has passed on a hi res JPEG- which is EXACTLY how he wants/needs the site to appear. It consists...

Answer:

Designing for WordPress - Complete Series & Downloads: http://css-tricks.com/designing-for-word...

Read more

Luke at Yahoo! Answers Mark as irrelevant Undo

Multiple image-related blog problems

I'm suddenly having multiple problems with my blog, and I've Googled as specifically as I could without much success. Problems involve Wordpress, Flickr, Gravatar, and images in general. I had no problems a week ago. I'm working on non-blog things for...

Answer:

To summarize the problems: 1. Can't post to blog from Flickr 2. Gravatars are also not showing and image...

Read more

easternblot at Ask.Metafilter.Com Mark as irrelevant Undo

How do I create multiple custom-sized featured post images for WordPress to display on the homepage?

I want to be able to set a featured image for each wordpress page that I create that will display the featured image on the index page.  The images will need to be different sizes, and should display with the different sixes on the homepage.  The items...

Answer:

Wordpress 3 has this built right in.  All you have to do is declare the image sizes in your theme's...

Read more

Stuart Starr at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.