Tagged Questions
0
votes
0answers
27 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
1answer
39 views
Post Thumbnail with Fallback Issue [closed]
Update This has been resolved. The "entire code" block below is the corrected and working code.
I'm starting to set up a mixed media slider on one of my Wordpress sites. I'm going to write a simple ...
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
1answer
91 views
How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
please i am wondering if there was a plugin or hack that enables me to append a nice looking thumbnail for each post or page i publish on my blog.
Currently, i am able to add the featured images but ...
6
votes
4answers
176 views
How to disable WordPress from creating thumbnails?
I've been looking around the net for a long time on how to disable WordPress from creating multiple thumbnails.
I've seen in most tutorials to set all the images to 0 in the media section. I have ...
0
votes
1answer
28 views
Different thumbnails for index and article page
For my aricles (wp7app.de) I'd like to use two different thumbnails, one which is displayed only on the index page (150x150) and one for the article page (600x400). However, I don't want to use a ...
0
votes
1answer
75 views
Thumbnails for media Library images
I have somee Item in the media library, where I want to retrieve the thunbnail from.
I use the normal post thumbnail functions (tried some of them), with normal posts or cpts's the work fine.
As ...
0
votes
1answer
54 views
I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image
Firstly, I'm not a developer, mostly a website designer and CSS hacker.
I'll try to explain better:
I'm using a grid theme that creates a thumbnail out of the featured image to display as a post ...
1
vote
1answer
26 views
Sidebar Thumbs Squished?
My Thumbnails seem squished for some reason even though I copied the code from some thumbnails I have that seem to be working fine.
The code that works:
in index.php
<a href="<?php ...
2
votes
1answer
97 views
Adding a custom field or metabox to the post-thumbnail widget?
Is it possible to add a custom field to an existing "widget" in the backend?
What I wanna do is provide a way to have a checkbox to apply a thumbnail that is double the size of the normal one on the ...
0
votes
1answer
41 views
Removing Title Tag from Thumbnails
I'm currently adding thumbnails to my page with: <?php the_post_thumbnail( 'category-thumb' ); ?> and this in the fuctions.php:
if ( function_exists( 'add_image_size' ) ) {
add_image_size( ...
1
vote
1answer
251 views
Thumbnail and Featured Image With Fixed Sizes?
In my index.php file, I'm trying to create a thumbnail for each post with the size width: 200px and height 142px.
And on the single.php, I would ike for the featured image to be width: 598px and ...
0
votes
3answers
212 views
how i can increase Featured thumbnails size?
when i open any post then 1st image show my featured image. i want to increase this size . see it or . i already try to increase from single.php to change this code
<p><img src="<?php ...
1
vote
2answers
1k views
Show featured image next to post-teasers in Genesis Framework?
I want my posts to have a featured-image thumbnail beside it, how do I do this?
0
votes
1answer
208 views
Autogenerated Thumbnail compression depending on size
This is a follow up to this question, in witch the jpg compression is altered depending on what WP's built-in image resulting image size returns. While it may work for most of the people, i'm looking ...
4
votes
2answers
653 views
New image size version only for the Featured Image file
I'm worried about too many files created when adding a new image size.
All uploaded files will generate the new size, I need a specific image size only for the file set as Fetured image, is there ...
1
vote
1answer
71 views
Aligning the thumbnail image
I want to control the alignment of the featured image(the thumbnail) with the options given in the 'Set featured image' pop box.
<?php if(has_post_thumbnail()) {
echo '<div ...
0
votes
2answers
434 views
Different thumbnail size than actual picture in post
I am wondering how to achieve something specific. I am not sure if this functionality is already built into Wordpress, or if there is some PHP happening.
This is the site I am basing some of my ...
0
votes
1answer
125 views
WordPress save thumbnail but don't show it [closed]
WordPress don't show image thumbnail but save them.
I have all version of image (eg. image.jpg, image-300x250.jpg) but WordPress don't detect them.
Anybody got same problem as here?
0
votes
2answers
333 views
Filter for post_thumbnail: link to small src and add data-attribute
I wonder how I can link manually to the smallest filesize for the_post_thumbnail() within its filter function …
add_filter( 'post_thumbnail_html', 'post_thumbnail_html', 10, 3 );
function ...
0
votes
1answer
209 views
Automatic adding thumbnail to post
I have got following code.
$postData = array(
'post_category' => array(get_category_id("website")),
'post_content' => 'My website about cars.',
'post_title' => 'my little cars',
...
5
votes
2answers
268 views
Set custom name for generated thumbnails
Is there any filter available to set the naming convention of those auto generated thumbnails?
Something like this:
thumbnail_150x150.jpg -> thumbnail-s.jpg
thumbnail_300x300.jpg -> ...
2
votes
2answers
654 views
Cropped featured image replaces original image in gallery
Firstly, I have done my research as thoroughly as I possibly can. Searches have been made, but I have not found any advice or solution as to my exact issue.
Ok, time to explain.
Currently I am ...
0
votes
2answers
1k views
get_the_post_thumbnail('thumbnail-name') always returns empty string
I need to duplicate a list of thumbnails elsewhere on a page and have set up a few different custom thumbnail sizes in my functions.php file.
If I use:
the_post_thumbnail('photo-small');
Then the ...
0
votes
1answer
303 views
How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality
I have create a custom post type with meta boxes.
In metaboxes I have create some fealds that the use can use the WordPress ThickBox Media Dialog to upload his/her images for each post seperatly.
...
1
vote
2answers
444 views
get_post_thumbnail_id() Doesn't return value [closed]
I'm changing a menu from a loop with query_posts to a "custom menu" using wp_get_nav_menu_items, but I can't seem to retrieve the post_thumbnail.
The original code I had (snippet):
<?php
...
0
votes
1answer
64 views
How can I check for a thumbnail in WordPress?
How can I can I check if a post has a thumbnail and if does do something? If doesn't do something else. This is what I have:
<?php if (has_post_thumbnail()) ?>
<?php the_thumbnail(); ...
0
votes
2answers
223 views
How can i make this in the_post_thumbnail?
if I add this code in my theme function.php
add_image_size('thumb' , 130, 65, true ); // Thumb
add_image_size('max' , 610, 305, true ); // Maximum
add_image_size('min' , 270, 135, true ); // ...
2
votes
1answer
568 views
List category posts - Thumbnails are not displaying
we've been using List Category Posts to display different category posts on one page and it was working great until recently when the thumbnail images disappear. The 'thumbnail=yes' option is there. ...
1
vote
1answer
126 views
Query the post which have a thumbnail
I've got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail.
Is there any custom query which allows me to retrieve only the ...
1
vote
2answers
335 views
Post thumbnail not working after regenerate
I have this setting in function.php
add_image_size( 'thumbnail-gallery', 185, 185, true );
It will display a square picture.
Everything is fine before I regenerate new size using "Regenerate ...