0
votes
1answer
14 views

Single Featured Image Repeating

I am attempting to create a listing of Blog Posts by Date(Month) and show the featured image for each. <div id="datePostTime"><h2>Posts for <?php echo get_the_date('F, ...
0
votes
1answer
39 views

Admin - no Featured image choice in create new/page|post

I am developing a WP theme and I wanted to add a thumbnail/featured image to a new page/post but there is no such option/choice - like it used to be, I am using WP 3.8.1, I did try to turn off all the ...
0
votes
0answers
27 views

problem with blank page

i have a real big problem with my wordpress website functions.php when i put the following code to achive post view and thumbnail. i'm getting the blank page error which when i publish or update a ...
1
vote
1answer
35 views

How do I turn a post thumbnail into a background image?

I believe the answer o this question was posted on this page, but it is still not clear to me. The snippets are scattered all over the discussion and several glitches happen when I implement them.
1
vote
2answers
104 views

Reactor Theme: Prevent Post Thumb on Post

Reactor Theme is built on Zurb Foundation and is here - I think it's quite good. The theme I am replacing used the featured image in the posts or blog page but not in the post itself. Reactor calls ...
0
votes
0answers
22 views

Custom thumbnail size for each post format [duplicate]

I want to customize each post format his thumbnail without creating many size in all posts, for example: Instead of : add_image_size( "standard-format", $width, $height, true ); add_image_size( ...
0
votes
1answer
55 views

How to disable thumbnail filter for a specific template part or image size?

I am filtering post_thumbnail_html in my theme to modify the output of my image tags. I have one template part that I would like this filter not to apply to. It uses an image-size that is used no were ...
0
votes
2answers
309 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
1answer
57 views

Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix

In various WordPress themes the margins are only applied to elements when they are images or captions /* Images */ .alignleft { float: left; } .alignright { float: right; } .aligncenter { ...
0
votes
1answer
284 views

apply_filters to featured image

I have a page where I have embedded the page using these lines of codes at function.php: //------Embed Content------ //Title function CustomFunction_ShowPage_Title($id) { $post = get_page($id); ...
0
votes
1answer
519 views

the_post_thumbnail() get the URL to the “medium” sized image

In the script below, I need to get the URL path to the "medium" size image in the "data-responsive" attribute. Its currently returning the thumbnail size. the_post_thumbnail("thumbnail", array( ...
0
votes
2answers
183 views

How can I get the featured image or the first image for a post/page and display it as a banner?

I'm making a travel site and for each page/post I want to display a google map and an image of the place referenced in the post/page the image is kind of banner-size so I dont think that the post ...
0
votes
1answer
223 views

Trying to change featured image from 180x180 to full width on home page

Right now my theme puts a 180x180 square image to the left of the title on the home page for each blog post. I'd like to change that to be full width of the content area and below the title. I'm using ...
5
votes
4answers
4k views

Get first image in a post

I am using this code directly from the codex. function echo_first_image ($postID) { $args = array( 'numberposts' => 1, 'order'=> 'ASC', 'post_mime_type' ...
0
votes
1answer
740 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 ...
0
votes
2answers
105 views

How can I scale down the width of images in bulk that are embedded in posts throughout the site?

I am building a new WordPress theme and it is quite different from my current theme. Currently the dimensions of my images are much wider than how I would like them to be for my new theme I am ...
0
votes
2answers
294 views

Posts Page Featured Image [closed]

I have created a theme that uses a featured image on every page. In settings, I have setup my "Posts Page" to be "news"...how do I get the featured image from "news" to display? The following will ...
2
votes
2answers
2k 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 ...
1
vote
1answer
139 views

How do I Add images uploaded in the post to a default custom field

I'm trying to add the URL of the post images in to a default custom field. Here is the code I got so far... Here is how I add the default custom field: add_action('wp_insert_post', ...
0
votes
2answers
1k views

Add image URL automatically to custom field?

Does anyone know how I automatically add the URL of the uploaded image to a custom field? In other words, When I upload a image I want the url to the image to get a custom field variable ...
4
votes
1answer
2k views

How to add a 2nd “featured image” to a post?

My theme has a slider widget that allows the end user to select a category and it assigns the posts in that category to the slider. If a post has a featured image, its used as the background of the ...
0
votes
1answer
1k views

Show post thumbnail only if it exists using timthumb

I am using timthumb as the image size management script throughout my wordpress site but I just noticed that an empty image tag shows up even when there is no thumbnail. <?php ...
2
votes
2answers
1k views

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or, more ideally $my_query = ...
0
votes
2answers
3k views

Featured Image meta box not showing up

I have featured images switched on in my theme: add_theme_support('post-thumbnails'); set_post_thumbnail_size(256,128, true); add_image_size('icon', 128, 128, true); but the Featured Image box ...
2
votes
2answers
344 views

How to handle thumbnails

How should I handle post thumbnails? Do most people put them in custom fields? Use a plugin? How do themes on ThemeForest handle this? Also different theme will have different size requirements? So ...