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.
2
votes
1answer
28 views
How to remove thumbnail sizes for specific post type on a child theme?
The theme I'm using includes a slideshow that generates an additional 4 image sizes for every image that is uploaded. I don't need to have all those images being generated for every image.
Is there ...
2
votes
1answer
49 views
How to change the naming of the resized image files
Now with custom image sizes Wordpress is almost as powerful as timThumb / phpThumb. There is one problem however. The way Wordpress handles the resized images are chaotic and doesn't survive theme ...
2
votes
1answer
66 views
Featured Image Size Conditional Tag?
Is it possible to check what image size has been selected for the featured image and only display that image..
For example.
<?php if(has_post_thumbnail('small-image')): ?>
...
1
vote
1answer
265 views
Cropping thumbnails to specific dimensions on front end post
Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
1
vote
1answer
79 views
Show last 2 image attachments from posts
How can i show the last 2 post attachments in my category template?
I tried the following
But i need to show the last 2 post image attachments
if i have the following code
function ...
1
vote
1answer
367 views
Archive show thumbnail
I want to show thumbnails next to my posts in archive page, however it only shows thumbnails if the posts has a featured image.
So i want to show thumbnail for the image attached to the post, but i ...
1
vote
1answer
73 views
How do you create a custom template to display a category with an image and related posts below?
I am trying to create a custom template that can give the following effect...
Category Name A (with image)
post with category name A
post 2 with category name A
post 3 with category name A
...
0
votes
1answer
26 views
Use Featured Image for backstretch.js
I'm using backstretch.js for full-width header images on my pages. I'm able to grab the Featured Image url like this:
<?php $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), ...
0
votes
1answer
20 views
Add image size array to a portfolio thumbnail in combination with Masonry Jquery Plugin
add_image_size( 'category-thumb', 250, 9999 ); //300 pixels wide (and unlimited height)
I am using the above code within my functions.php file, to generate various thumbnail sizes for my masonry ...
0
votes
1answer
20 views
Display child pages on a parent and child page using Featured Thumbnails
How would I display a list of my child pages using featured images on a its parent page as well as its other siblings child page?
For example, if my parent page is called 'Music', I'll have my main ...
0
votes
1answer
10 views
setting featured image is not working while running script in background, works when running that script from browser
I have creted a script which will fetch content from one of my site and automatically create new post in my wordpress blog.
When I am running that script from browser, its working really cool! post ...
0
votes
1answer
27 views
Ho Do I Use An External Image URL As The Featured Image?
Would like to use Flickr and other externally hosted images as the post thumbnail featured image.
Would like to use the PHP in the child theme as a custom function rather then edit parent themes ...
0
votes
1answer
22 views
resizing of thumbnails not working
i have the following in my functions file from the wordpress codex
<?php add_filter('show_admin_bar', '__return_false');
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( ...
0
votes
1answer
32 views
Define width of featured image thumbnails, but also make responsive?
So I know how to define thumbnail images with set_post_thumbnail_size and it works, but the issue is that the image isn't responsive when I do that, right? When I define the thumbnail to be 300 x ...
0
votes
1answer
50 views
How to set featured image to custom post from outside programmatically
I am trying to fetch and insert images outside the wordpress environment to a custom post via PHP.
How to move/upload that image to wordpress upload directory year date folder format just like ...
0
votes
1answer
42 views
Add Image Size for Featured Image with Responsive Design
So, I know that I can make a custom featured-image size by adding this to my functions.php file:
add_image_size('newsize', 883, 300, true);
and calling it with:
the_post_thumbnail('newsize');
...
0
votes
1answer
28 views
display post thumbnail for specific category outside of loop
I'm building a theme that features a section wherein I'd like to have the single most recent post's thumbnail of a single category displayed between the header and blog sections. Something like ...
0
votes
1answer
34 views
Displaying warning if no featured image has been set - Post Editor
I run a multi-author website and many of my users are forgetting to set a featured image for their post. This is a big problem as my theme depends highly on featured images to keep a consistent feel ...
2
votes
0answers
58 views
Hide upload image fields for the different media upload popups
I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
1
vote
0answers
14 views
Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id's?
On a very old site (7 yrs) with a lot of posts (30k) I've been trying to whittle down the database tables. The postmeta table is 1.5m rows, 750k of those rows are for a meta_key named ...
1
vote
0answers
23 views
How to replace featured image upload option with the post media image option
I am looking for a way to insert custom URL links in featured Image as well. Currently Featured image tab is only having these basic settings -
But I want to add custom URL links to my featured ...
1
vote
0answers
266 views
Featured image metabox not showing up
I have a theme installed on WordPress Multisite 3.5.1 which has a one custom post. Now I wanted to have two more so I have created them. Everything is working besides one thing. The featured image ...
1
vote
0answers
109 views
Can I insert the feature image inside the content, after any paragraph?
I want to display the feature image inside a post text, perhaps after the third or fourth paragraph (or any) into the_content.
Searching the site I've found this code, by Amit:
...
1
vote
0answers
168 views
Can't Set Featured Image
I have installed the MarketPress plugin from WPMU. I have an ongoing issue with featured images. When I try to set the featured image (in any post) it continually hangs on saving.
My problem is that ...
1
vote
0answers
118 views
Resize post thumbnail produces horrible image quality..Any help?
im having a problem figuring this out. I am displaying a random post on the header of my site but the post-thumbnail looses quality when I add a custom size. How can i make it not loose quality?
This ...
1
vote
0answers
55 views
Change Featured Image direcly in the Page
In Doing an Image Gallery with Fancybox( lightbox ) using a wordpress loop, take a look at the code inside the loop:
<div class="gallery_image">
<p style="width:201px; height:199px;">
...
1
vote
0answers
264 views
How to export all content with feature images?
I want to export all content with featured images from my localhost WordPress site to the production blog,but when I tried using the default WordPress export-import plugins ,all content get exported ...
1
vote
0answers
58 views
Converting Attachment to Images?
I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page.
...
1
vote
0answers
603 views
Set Featured Image Thumbnail from external URL
I have been searching high and low for a work around to set a featured image thumbnail from URL. I understand by default the image must be on my server to get re-sized and display.
Need to get a php ...
1
vote
0answers
101 views
Featured image upload finished hook
I'm looking for a way to hook into the process of uploading a featured image. Ideally I would want to be able to do some stuff right when the upload has finished, before the thumbnails are generated.
...
0
votes
0answers
35 views
Cannot upload featured image to a custom post type
For some reason I am not able to upload images OR set the Featured Image on a custom post type in my custom wordpress theme.
I have added theme support of post-thumbnails to my functions.php file and ...
0
votes
0answers
26 views
Set Featured Image from Form in Front End
I am creating a front end creator/editor for some custom post types.
I wanted to have a button that opened WordPress' "Set Featured Image" modal (as is found when creating a post from the admin ...
0
votes
0answers
42 views
Is there a way to force Featured image to show as attachement?
When adding an image as a featured image to a post - if the image is an existing image in the Media Library, then the image is not added as a true attachment but as a thumbnail, shown like this in ...
0
votes
0answers
28 views
the_post_thumbnail(“size”) returns same image for all sizes except thumbnail
I've got 3 default image sizes set up in "Setting > Media Settings > Image Sizes"
However, when I use anything but "thumbnail" as the image size parameter in the_post_thumbnail(), it returns the full ...
0
votes
0answers
31 views
How to upload images using <form> as a post thumbnail?
In my custom image upload form, codes are (generally):
if(isset ($_POST['submit'])=='Submit')
{
$product_image_1=$_POST['product_image_1'];
$product_image_2=$_POST['product_image_2'];
$newPost = ...
0
votes
0answers
22 views
Post thumbnail size for custom field only
I'm using advanced custom fields (the plugin), and I have some image upload fields. The images that I'm uploading via this custom field need to have a specific size, but I don't want to create images ...
0
votes
0answers
77 views
How to create resized versions of images added with wp_insert_attachment
I'm uploading images to my media gallery and setting them as my post's featured image, which is working quite well.
I'd like to generate thumbnails of these featured images, in the same way that ...
0
votes
0answers
15 views
Why '/post_type/feed/' differs from '/feed/?post_type=XX'?
I was trying to put the thumbnails for my custom post types in their respective feed using the the_content_feed and the_excerpt_rss filters. The problem was when I reached for the feed using the ...
0
votes
0answers
75 views
add_theme_support( 'post-thumbnails', array( 'post')); is not uploading the file
So I used the codes below in the functions.php
add_theme_support( 'post-thumbnails', array( 'post'));
set_post_thumbnail_size(100, 75);
And then in THE LOOP I called:
<?php ...
0
votes
0answers
175 views
Category Grid View Gallery Plugin not showing images as a grid
I installed Category Grid View Gallery to show some featured images from Posts as a grid... and they're only showing up as a list. There should be plenty of room to show these images 2-up. Played ...
0
votes
0answers
32 views
How do I link featured images on my blog homepage to an entire tag instead of a post?
I've found a theme (Hatch) for my blog - link here that I really like. I am trying to figure out how to get the mid-sized featured images or post thumbnails that are currently displaying on my ...
0
votes
0answers
36 views
Post thumbnail caption moving to right
I have a portfolio type theme.
Each page has a post thumbnail.
I have a home page where I have each post thumbnail in a ul list
The list is then floated to create a grid.
I need a name to go with ...
0
votes
0answers
24 views
Generate featured images old posts II
In this original post:
Generate featured images old posts
This SQL is :
INSERT into wp_postmeta (meta_value, meta_key, post_id)
SELECT DISTINCT(ID), post_type , post_parent
FROM ...
0
votes
0answers
43 views
Remove featured image link not working
I added a featured image to my post through set featured link in backend. Not when i click on remove featured image, it removes it . But when i update the post then, The featured image still comes ...
0
votes
0answers
87 views
Setting custom image sizes in child theme
I'm trying to create a child theme that has different image sizes from the custom image sizes created by the parent theme. The code below works just fine in setting the options and everything and the ...
0
votes
0answers
63 views
Bulk change image titles
I have site with more than 1000 posts and they all have one image on it.
All have the same title because they where imported via csv...
However, I have a custom field on each post that stores the ...
0
votes
0answers
122 views
Front-end media upload doesn't work properly
When i try to upload media from front end i get error
An error occurred in the upload. Please try again later.
When i refresh a page i see uploaded media. I noticed that when i remove header ...
0
votes
0answers
82 views
Bulk resizing featured images to bigger proportions
Similar to this guy Resizing to bigger proportions as original not working, I need a way to resize my featured images to bigger proportions as most of the images are smaller than my pre defined ...
0
votes
0answers
64 views
How to take thumbnails of video posts
I want to show videos thumbnails, as a part of related, recent or popular posts in different parts of the site such as in the footer and sidebar widgets. How can I achieve this?
One thing that I ...
-2
votes
0answers
29 views
help me to solve display thumbnail problem
I have no idea anymore to solve my problem. I want to create a related post with thumbnail without using plugin. For instance, I did try below codes:
<?php
$categories = ...

