Automatically generated smallest size of an image.

learn more… | top users | synonyms

3
votes
3answers
2k views

Can I attach a document (eg: PDF) but have a JPEG as a thumbnail?

Is there a built-in feature or plugin that allows you to attach a document to a post or page such that the actual attachment file is one thing (eg a PDF) but the thumbnail images are another (eg a ...
0
votes
1answer
191 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
593 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 ...
6
votes
2answers
608 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 -> ...
0
votes
1answer
359 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', ...
0
votes
1answer
633 views

Thumbnails and Lightbox

As mentioned on wordpress.org, it is possible to link a thumbnail to its larger self. <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( ...
0
votes
1answer
326 views

filter posts without images or featured image

I'm using wordpress MU 3.3.1. I want to add a function within a loop that displays only posts with image, or featured image. please help me on how to filter posts. <?php get_header(); ?> ...
0
votes
2answers
2k 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
417 views

Broken thumbnails (sometimes) with TimThumb

Reinstalled theme with latest version of TimThumb (was previously effected by the vulnerability issue). Now most of my thumbnails work, but some do not. My theme relies on this plugin, so I'm not sure ...
0
votes
1answer
788 views

Post Gallery list attachments except the one used as post thumbnail

I'm doing gallery in a single post after the post thumbnail. So I list all the post attachment with the image type (with the following query) but I want to exclude the post thumbnail. global $post; ...
0
votes
1answer
278 views

Gallery Shortcode Function Help

Okay, so I found this code online that allows you to add the option of how many thumbnails you want to show in the gallery shortcode. The code below is what they say to add to the functions.php file ...
0
votes
3answers
326 views

How do I get thumbnail generator to recognize the_permalink tag?

Help! I am trying to create a Digg-clone by integrating "BM Shots" (a webpage thumbnail generator) with "Recommended Links" (a social voting plug-in for Wordpress). Recommended Links allows for user ...
0
votes
1answer
492 views

Custom field outside the loop and inside an array

I am trying to use a custom field inside a widget so it's therefore outside the loop. Taking it a step further, the theme I have is using an array to generate listings which makes it hard for me to ...
1
vote
1answer
2k views

Thumbnails on next/previous links in custom post type single.php

I've been successful in using the following code to display thumbnails for next & previous links for normal posts but this does not work at all for custom post types. <div id="cooler-nav" ...
0
votes
1answer
83 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(); ...
1
vote
2answers
2k views

Gallery with thumbnail carousel

first post so hopefully I don't break any rules! :P I'm in the process of building a Wordpress theme for the Architecture office I work in. I am creating a page template to use for individual jobs ...
0
votes
1answer
42 views

Can I make a parent page of the blog and have it display a paragraph/thumbnail of certain entries?

WP 3.2.1 The title just about says it all. I'd like to make a parent page of the blog that will dynamically show a little teaser of certain entries (either the most recent or random, depending on ...
0
votes
1answer
771 views

How to set thumbnail for each tag?

I would like to set thumbnails for each tag. I actually need two type of thumbnails. 16 x 16 and 90 x 90. 16 x 16 will be used infront of tag name like stackoverflow. 90 x 90 will be used in tag page ...
0
votes
1answer
385 views

Stop 'alt' from being added to the_post_thumbnail

I'm using the_post_thumbnail to display a specific thumbnail size. The function outputs an 'alt=' tag with the description of the attachment. Is it possible to clear the value in the ouput? So it'll ...
0
votes
1answer
1k views

wp_get_attachment_image_src() with advanced custom fields returning empty

I am using the advanced custom fields plugin to upload images for an image gallery. I am attempting to retrieve the different sizes of images that are saved in the uploads folder and having problems. ...
1
vote
1answer
973 views

Show full image thumbnail

How can I set full image thumbnail on category pages? Image should be small in dimensions but not been cropped. Currently my theme WP-Davici (Solostream) use "Get The Image" plugin to generate ...
1
vote
3answers
325 views

Implementing a tricky wordpress menu (nested categories + thumbnails)

I'm trying to make a layered wordpress menu, out of categories. Here's how it's going to look: I have no clue how to develop this, can't do it with get_posts (not sortable by parent/children), or ...
0
votes
1answer
1k views

Show image in excerpt post. Image not displaying

I am editing a costum theme. I was trying to add excerpt to the homepage. The homepage is costum. The excerpt show just fine but the image refuses to be displayed it seems. This is my code: $args = ...
1
vote
1answer
473 views

How to disable multiple thumbnail generation?

Tried setting the thumbnail size, but left medium + large to 0 0 to disable them, still all 3 were generated. Is there anyway to selectively disable these via functions.php?
0
votes
1answer
349 views

Excerpt Problems

On a theme I'm working on I want a div which expands to 100% height of the outer div (which I will put around the thumbnail). The purpose of this is to move text further to the right to be aligned as ...
1
vote
1answer
156 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
501 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 ...
0
votes
1answer
623 views

Replace TimThumb in existing WordPress Themes

I'm sure most are aware of the most recent Timthumb issues. I know they have put a band-aid on the problem, but I really don't care for the script for several reasons. Before I started building my ...
1
vote
1answer
80 views

Custom Post Type And “fopen”

Never posted here but since I can't find a solution on my own, let's abuse your kindness! I'm adding some custom post types through my theme. The first custom type works like a charm, but as soon as ...
0
votes
2answers
2k views

Thumbnail for categories / taxonomies plugin?

I'm looking for a nice way to attach an image as a thumbnail to a category. No plugin that I found does this. I have a category loop and it would nice to display a category thumbnail, not just the ...