Tagged Questions
2
votes
2answers
36 views
Setting featured image with function, 1 part not working
I'm trying to set a post's featured image based on custom fields. There are different types of posts and therefore the featured image should be set depending on which custom fields have been filled ...
-1
votes
1answer
28 views
Image width issue in IE [closed]
For some reason images are being displayed as a thin line in IE 8 and earlier and i cannot work out why this could be. I'm using CSS to re-size the images for the homepage, the reason for me using CSS ...
0
votes
1answer
132 views
Getting Featured Image Caption to Only Show if Populated
Good evening!
I'm trying to hide the featured image caption from showing. Currently, it'll show build the div (but not populate it because it's empty). What I'd like to do, ideally, is only show the ...
0
votes
2answers
57 views
Featured Image keeps cropping
I've spent hours trying to figure this out and its driving me mad. I'm not great with php code so I'm not sure if I'm doing this the best way anyway...
It should be simple - I have built a custom ...
0
votes
2answers
692 views
is there a way to remove featured image from blog page and single page
<?php
/*
*
* The default template for displaying content. Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
...
1
vote
1answer
324 views
Add a Post Thumbnail to an RSS Feed with custom size
I have two different blogs on the same domain and my goal is to get the 3 latest posts from blog1 to show on the home page of blog2. Everything goes well following these instructions: ...
0
votes
1answer
99 views
Add_image_size not generating correct size
I have 2 additional image sizes i've added to my theme and the for some reason when I use the Force Regenerate Thumbnails plugin, my images are created but the files sizes are not exact.
Here is the ...
1
vote
2answers
245 views
the_post_thumbnail fallback using hooks
I am using this big theme that is almost entirely relying on widgets and sliders.
Now I trying to avoid looking for post_thumbnail output code in all the included files in order to achieve fallback ...
0
votes
2answers
60 views
Post-thumbnail only for specific post-types?
I have this in my functions.php
add_theme_support( 'post-thumbnails' );
This means all my post-types (normal posts and custom-post-types) have post-thumbnails enabled.
Is it possible to just ...
0
votes
2answers
462 views
Get the 5 lastest Featured Posts from a category
Here is the website http://ariadneswonderland.gr/ that all this concerns.
On the homepage I'm using a Drop shadow box plugin
under the gallery to show a series of images of featured posts, as of ...
0
votes
1answer
407 views
How to make excerpt image be full size instead of thumbnail?
Now when I have excerpts on the home page the image is a small square, but I'd like to change it to a fill the entire width of the content area. (as if the image was in a post.) My theme is responsive ...
-5
votes
1answer
114 views
MIssing feature image link function
I need to be able to add a feature image to a post as a link. The link is good, it's green check. And no i cannot upload the file and insert into post dont do anything good. I have the link to the ...
3
votes
2answers
773 views
How to display the_post_thumbnail if a post has one or otherwise display the first image in a post?
I would like to create a condition that checks to see if a post has a thumbail and if it does display it, otherwise display the first image in a post.
I tried something like this in my loop.php but ...
0
votes
1answer
388 views
show all the posts thumbnails
I want to display all the posts by the featured image of each post.
Is there a shortcode or can you give me some tips on how to achieve this ?
Thanks!
0
votes
2answers
3k views
How come Featured Image isn't showing up in my Custom Post Type?
I have thumbnail support added with the following in my functions.php
// Add Thumbnail Support
add_theme_support('post-thumbnails');
set_post_thumbnail_size( 140, 140, true );
And I create the ...
1
vote
1answer
253 views
How to Display Image Meta underneath EVERY image in EVERY post
First off, I want to say thank you for taking the time to even read this, I really do appreciate the help this site and it's community has given me thus far.
i have looked forever to be able to ...
0
votes
1answer
340 views
How to hide image-url if no attachment?
How can I hide the img-tag if there is no attacment?
(function is from this tutorial: http://wp.tutsplus.com/tutorials/automagic-post-thumbnails-image-management/)
<img src="<?php ...
2
votes
2answers
851 views
How to change post thumbnail title and alt attributes to post title?
Can we change the title and alt attributes of the_post_thumbnails and set them to post title instead ? like creating a function for it and adding a filter ? I tried searching but I can't seem to find ...
0
votes
3answers
523 views
struggling with syntax for the_post_thumbnail();
i want to display the alt text for a featured image.
I've been using the the_post_thumbnail(); function to display the image
like this:
if ( has_post_thumbnail() ) { // check if the post has a Post ...
2
votes
1answer
246 views
Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
I have a bunch of old posts on a blog that I would like to assign a featured image to.
I have retrieved all the images I would like to use for each post.
I saved each image file name after the slug ...
0
votes
1answer
75 views
include w_thumbnail_src in function?
I got a function that automatically creates a custom field in the post. I have this located in my functions.php.
Image is the name of the custom field and HERE is the value. How can I put the ...
0
votes
1answer
210 views
How to allow multiple post thumbnails with Multiple Post Thumbnails plugin and post featured image? [closed]
I'm currently using the featured image functionality to allow the user to upload an image to pages using a specific template.
On my home page, however, I want the user to be able to also select and ...
1
vote
1answer
894 views
Delete Post From Front-End and attachment permanently
Is there a way to delete a Post From Front-End and it's attachments permanently? This is a snippet that moves the post to the trash can, but it doesn't remove attached images (they remain on the ...
2
votes
2answers
727 views
Linking thumbnail to full size image
I use a function in my blog (getImage) to call thumbnails in the loop (it calls the 1st image on the post) but instead of link to the post, i would want the thumbnail to link to its full image src.
...
4
votes
1answer
525 views
Prevent publishing the post before setting a featured image?
As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image.
ANY HELP ???