Post Thumbnail is a theme feature introduced with Version 2.9. Thumbnail is an image that is chosen as the representative image for Posts, Pages or Custom Post Types.

learn more… | top users | synonyms (1)

0
votes
1answer
21 views

How to blur the_post_thumbnail() via blur.js (jquery)?

I want to use blur.js (blurjs.com) to blur the post thumbnail. But it seems that the .js can't grab the image out of the_post_thumbnail(). If I follow the instructions from the website and build my ...
0
votes
1answer
28 views

Display child categories in WooCommerce

This code displays the category thumbnail and title of the two parent categories for WooCommerce product categories. I have several child categories I'd like to display as well. Is there way way to ...
0
votes
0answers
27 views

Thickbox Opening IFrame instead of Featured Image

I am trying to open the featured image on the single post page in a WP Thickbox but it's opening the entire post in an IFrame. Here is my code: <?php if ( has_post_thumbnail()) : ?> ...
0
votes
1answer
36 views

Full width thumbnail

I have a post part that is called into my single.php and looks like this: <div class="main-content col-md-8" role="main"> <?php while (have_posts()) : the_post(); ?> <?php ...
0
votes
1answer
20 views

set_post_thumbnail() shows Unattached on backend under Media

I'm using front-end form to submit content and use // Set thumbnail $newupload = set_post_thumbnail( $post_id, $att_id ); echo $newupload; to set the Featured image on the post. It actually works ...
0
votes
1answer
30 views

Declare global variable that can be used on other function

I have AJAX image upload function where I can get attachment_id value. I want to save that as global variable and use it in different function that sets post thumbnail when it's exist. This is what I ...
0
votes
1answer
65 views

admin-ajax.php returns 0. How do I debug it and fix it?

Trying to use admin-ajax.php to upload image from front-end form. I'm keep getting 0 with below code I have and not sure how to debug this or where it goes wrong. I have HTML input file <input ...
0
votes
1answer
38 views

Full width featured thumbnail

How to make post thumbnail full width above sidebar and content? I am using bootstrap for a theme and have a single template named single-thumbnail-featured.php. On this post I need the thumbnail to ...
0
votes
0answers
104 views

AJAX image upload with a upload progress bar using media_handle_upload

I currently have post image upload for the featured image from front-end form. <input type="file" name="wh_image_upload" id="wh_image_upload" multiple="false" /> and using media_handle_upload ...
0
votes
1answer
54 views

Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio

I know that I can use the add_image_size() function in the function.php of the theme to pre-determine the additional desired image file of specific width & height to be cropped and uploaded. ...
0
votes
1answer
19 views

Featured Image, and Image in post

I have a bit of dilemma regarding featured image. Here's my situation. I'm currently using featured image tied to a post to display on the home page, and on the single post page as well. However ...
0
votes
2answers
39 views

Unable to set featured image

I was customizing theme for some body, basically i just added a taxonomy for the custom post type client which was allready there. There were already 6 posts , I added like 30 more posts , set ...
3
votes
2answers
112 views

Is there a hook / action that is triggered when adding or removing a post thumbnail?

I'm trying to update a custom field after a post thumbnail (Featured Image) is either added or removed from a post. The aim of this is to keep track of whether a featured image has been added or ...
0
votes
1answer
160 views

Ajax image upload with media_handle_upload and form.js

I want to have AJAX image upload on front-end form and can't figure out where it goes wrong. HTML form for image upload <form id="thumbnail_upload" method="post" action="#" ...
0
votes
1answer
44 views

How to show only 2nd featured img on home/blog

I want to show only 2nd featured image on home/blog. Plugin is this: http://wordpress.org/support/plugin/dynamic-featured-image Developer told me that I can do something like this: <?php if( ...
1
vote
1answer
36 views

Is there a way to change a post's thumbnail image(s)?

I just recently finished the first version of a blog (here: http://northernconservative.com/ ), but whenever I share a post on social media, the thumbnail image is the atrocious scaled up version of ...
0
votes
1answer
74 views

Can't get post thumbnail to display in foreach loop

I've been trying to get the post thumbnail to display in the foreach loop for a few hours now and I can't figure out how to make it work, any help would be greatly appreciated! <div ...
0
votes
0answers
42 views

Featured image to grayscale with PHP imagefilter - which hook to use?

Website I am working on uses b/w images everywhere and my client is a little lazy, so I need to convert any image attachment to grayscale automatically. For that, I use something similiar to this: ...
0
votes
0answers
9 views

Wordpress image selector in theme

I'm new to wordpress theme developing, I'll be happy if I could use your help. I'm trying to simulate the post thumbnail metabox content in my theme. I need the ability to upload and choose images ...
0
votes
1answer
65 views

How To Loop Through <li> list with Custom Post Types

Please excuse me for being ignorant. I am currently trying to learn more about PHP and WordPress. This is my first time to post a question on StackExchange. I found a jQuery plugin for a simple ...
0
votes
0answers
37 views

Featured images same height

I have a theme (called Origin) from Elegant Themes. I'm using a child theme. I need to programmatically have all the featured images set to the same height for the home page. I can do this in CSS but ...
0
votes
0answers
75 views

Get URL of current featured image with JS in edit post view

Is it possible, somehow, to fetch the URL of the currently set featured image when you're in the edit post view? So far I've looked at fetching via jQuery such as: var url = ...
0
votes
0answers
18 views

Featured Image with specific width or height in percentage

My site has the post featured images in the main page, but shows them cropped. What can I do to change it so it doesn't do the cropping and degrade the quality?
0
votes
0answers
79 views

Need different overlay png images on different single products in woocommerce

I am setting my t shirt store, I want to add a transparent png image over jpeg image. For product 1, Transparent product1.png For product 2, Transparent product2.png For product 3, Transparent ...
0
votes
2answers
35 views

Adding a class to certain featured images

I am new to WP Development and am trying to accomplish something: I would like to add a particular CSS class only to certain featured images. Specifically, if a featured image is above a certain ...
0
votes
2answers
61 views

How to get all featured image sizes and their URLs?

Is there a standard way to get all the registered sizes of the featured images? One can register different sizes with add_image_size(). What I need, is to get all the sizes of a featured image of a ...
0
votes
0answers
254 views

Upload featured image from front end using media-upload.php

I'm trying to use admin/upload.php to upload featured image from front end form. All I have to do is put below code in the front end form <div id="postimagediv" class="postbox "> <div ...
0
votes
0answers
56 views

How to add featured image on front end form?

I'm working on my first WordPress plug-in for front end posting where signed in users can post and manage their articles on front end. I'm pretty close to be done but can't find a way to add Featured ...
0
votes
0answers
11 views

Getting seperate dynamic feactured images for seperate templates?

I had written code below for getting the dynamic feactured images into the template page. I have four similiar pages, each one's post id is different and they are written inside a custom post type ...
0
votes
1answer
70 views

Featured image url

I'm trying to create a bootstrap carousel with the featured image as a background in a div. It works for the first post but the second post isn't loading the right background (it loads the one from ...
0
votes
0answers
23 views

Image Gallery / Thumbnail for Theme Framework through plugin form

I'm using WPUF plugin form in order to submit custom post_type from frontend and I need to implement the form to themes framework, so it can set the thumbnail / gallery in submitted posts. I ...
0
votes
2answers
41 views

Modify WP_Post before processing

I am looking for a way to modify WP_Post object before it's processed and displayed on the page. Reason - I built my site when WP was still in version 2.0, or even earlier. I didn't attend to it for ...
0
votes
1answer
28 views

WP Loop. If featured image is a panorama (3:1 ratio) execute some code

I'm wondering if there is a way to write a condition (if/else) for a featured image. If user submits a featured image in 3:1 ratio (panorama, one edge is 3 times longer than the other edge) - execute ...
1
vote
1answer
134 views

Reasons why all thumbnail sizes aren't working

The situation: I have both a development environment and a production environment of a website. Both are identical. The issue: On the production site, all post thumbnails show the full image ...
0
votes
1answer
37 views

Image getting out of container [closed]

In my index page, I use the featured image next to the post excerpt. .alignleft { display: inline; float: left; margin-right: 1.5em;} .wp-post-image { ...
0
votes
0answers
22 views

Send featured image by form to e-mail

I need to come up with a Function that uses a webform (could be Contact Form 7) to allow visitors to indicate a post by including a friend's e-mail. This e-mail sent will contain the post's content ...
0
votes
1answer
61 views

Store the wordpress “featured image” under »wp_posts« Database table

How to store the WordPress featured image under the wp_posts table. Can any one help me? The reason why I am asking same table details (wp_posts), is because I am using a JSON response to add in my ...
1
vote
1answer
31 views

Print specific image size in galley loop

I have the below loop and would like to print a specific thumbnail size, as this loop currently prints the full size image. How would I print a smaller thumbnail? while ( have_posts() ) : the_post(); ...
0
votes
1answer
71 views

Allow 'Set featured images' to select multiple images

So 'Featured image' option on WP is lacking. What I was expecting is when user selects multiple images it echos out multiple images on the page, instead you can only select one photo. I tried to find ...
0
votes
0answers
15 views

Intercept an image before it's uploaded to Media Library

I've got a WordPress website where I need to have some posts with gifs as thumbnails. After researching this topic a bit I realized that I have to intercept the gif before it's passed into Media ...
0
votes
2answers
143 views

Resize image to specific dimension (X to Y ratio)

I've tried to add my custom image size like: add_image_size('224_226', 224, 226, false); I need resize all images to same size what i define in style, when i've uploaded file - Wordpress resize it ...
1
vote
3answers
217 views

Custom user role cannot see or modify featured image

I have created a custom post type called Event and I have enabled support for featured images in my functions.php file, but still my custom user role can not see the featured image meta box on the ...
0
votes
1answer
22 views

Echo recent posts each with its own respective featured image

I'm trying to create a grid-type view for a custom home page. it will be a simple grid that will contain three columns, with several previous posts in each column. I'd like for each instance to ...
0
votes
0answers
73 views

How to display a featured image and register a tag for the RSS feed?

I am trying to modify my RSS feed to display featured photos while using Angular JS to display this content on another website. I am currently using the Google Feed API to manage the format of the ...
0
votes
1answer
36 views

Wordpress showing image as thumbnail without using thumbnail

I'm currently working with a wordpress theme, where the homepage is set to show all the latest posts. All my posts are showing thumbnails, even tho i dont set an featured image in my posts. It takes ...
0
votes
0answers
48 views

Automatically set the_post_thumbnail to Custom Field Value

I have a custom field (built using Advanced Custom Fields) that I've chosen a Featured Image with. Everything works great, but I'm looking at using this plugin for Social Sharing: ...
0
votes
0answers
64 views

Update feature image of custom post type from front end not working

I have successfully inserted feature image of custom post types from front end form but when i try to update title and content works fine only feature image it is not ...
0
votes
1answer
128 views

Serve different images per screen size and cache possible?

So my posts have a featured image. This image is large. 1920 x 1281. The max width is set to 960 so my image is 2x as large for retina screens. However this results in a ~200-300kb file. The images ...
1
vote
2answers
30 views

How can I see where in my themes and plugins certain image sizes are used?

I've had the same WordPress blog for years upon years, and years ago, I installed the Simple Image Sizes plugin to control image sizes. I think I wanted an easy way to set the size of post header ...
0
votes
1answer
158 views

Get the featured image url of clicked post

How can I display the featured image of a post in a modal along with it's content. With the help of a few online threads on similar issues, I tried this: <?php if ( has_post_thumbnail()) { ...