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
33 views

Display a thumbnail outside of the loop for a page

Is it correct that to dispaly a post thumbnail image outide of the loop you need to associate the post ID from the page? Like this: echo get_the_post_thumbnail($post->ID);
1
vote
1answer
65 views

Delete all post meta except featured image

My aim is to clear up my database entries. I did a migration from blogger which added many useless post_meta. I found a plugin (db reset) that has the option to reset/delete all post meta. However if ...
-2
votes
1answer
32 views

How to stop WordPress from creating native thumbnails?

Stop use thumbnail native image - one major issue, I want Use cache image thumbnail inserted of native image, its create junk on web-space e.g If I upload one product its make 3-6 thumbnail image ...
0
votes
1answer
59 views

insert thumbnail image from php script

I'm trying to insert a post image thumbnail from my php scritp. It's inserting the post, the content, a download link, and I only need to set the thumbnail image to finish my script. This is my code ...
0
votes
0answers
27 views

Mobile view: big image sizes, when using infinite scroll and loading next posts

My website is set up with a simple blog (http://goo.gl/5nJZOz) and the plugin "Infinite Scroll". The site works responsive: When I change the size of my browser to 799 pixels wide or lesser, the ...
0
votes
2answers
45 views

Lazy loading thumbnails

My goal is to lazy load thumbnails. As seen in here, I need to add class="lazy", placeholder has to be in src and lazy loaded image as data-original. This code works perfectly: if ( ...
0
votes
0answers
13 views

Custom Theme with Included Infinite Scroll Won't Load Post Thumbnails

I'm open to any constructive feedback, here. I have a custom theme that we've included infinite scroll in but I noticed today that, when loading category posts, once the additional posts are ...
0
votes
1answer
42 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
42 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
46 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
45 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
26 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
55 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
251 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
54 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
236 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
96 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
23 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
50 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
136 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
240 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
53 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
43 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
142 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
98 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
10 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
82 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
62 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
154 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
174 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
38 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
92 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
318 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
83 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
12 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
104 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
26 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
71 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
32 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
143 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
49 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
32 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
81 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
50 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
110 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
18 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
205 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
370 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
25 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 ...