1
vote
1answer
34 views

wp_get_attachment_image_src() width and height boolean

I have the following code in my theme: <?php $size = 'large'; $postimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size ); $url = $postimage[0]; $h = $postimage[2] ...
0
votes
0answers
13 views

Change default gallery image size? [duplicate]

I'm using WordPress' built in gallery feature on a post. However, it produces the images with inline height and width attributes: <dt class="gallery-icon portrait"> <a ...
0
votes
1answer
32 views

Change image size depending on page

I've got a simple photographic site and it uses large image sizes throughout. On the archive page, however, I've got about 35 posts each showing the first image of each. By default, the images being ...
1
vote
2answers
47 views

Do not display post images on front page

I have decided that for all pages where multiple posts are shown (e.g. front, category, tag pages), that post images should not be shown. Instead, featured images, if specified, should be shown next ...
0
votes
1answer
271 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
0
votes
0answers
71 views

All “Featured Images” not displaying after Wordpress update

After updating to the latest version of WordPress today, I noticed that all "Featured Images" on my website are no longer displaying. After trying to figure the problem out for hours, I added the ...
0
votes
0answers
33 views

How do I keep images in posts below a certain size without editing the post?

I'm writing a theme that has a max body width of 620px. I've set $content_width to 620 in functions.php, as well as included the following code in my style.css file following the Codex page on ...
0
votes
1answer
55 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
67 views

the_post_thumbnail fetches wrong image

We currently have a strange issue with a wordpress site. We have Featured Images on a good number of pages, including the one that we selected as the start page of the blog – the site uses a custom ...
0
votes
1answer
43 views

Gallery thumbnails very small

When I use the standard WordPress gallery, I get very small thumbnails in the content: Since there is lots of space in the content, I would like to display bigger images. How can I do that? There ...
0
votes
1answer
180 views

How to obfuscate theme directory URLs

I'm rewriting this question because I realized it was totally unclear what I want to do. I'm looking for a way to "obscure" the theme directory so that absolute URLs that reference things like images ...
0
votes
1answer
69 views

Change Image Sizes for Mobile Theme

I've got a small challenge, right now I have an existing blog with images that formatted for desktop. I have a mobile child theme that shows the content for mobile. Is there a method to filter a ...
0
votes
1answer
102 views

Custom image size doesn't work

I'm developing my own theme. I'm trying to remove the default WordPress image sizes medium, large and full. I also want my own image size, vividflow-full-width. I'm using this Sumtips tutorial. At ...
0
votes
2answers
306 views

Are seven additional image sizes are too many?

I am developing a theme which uses different image sizes. So I will be adding 7 image sizes, are they too many? Could that break anything like the image size selector, other parts of the interface or ...
0
votes
0answers
18 views

wp insert attachment from local drive [duplicate]

Is there some way to upload images from local drive to posts without using dashboard. Something like function wp_insert_attachment, bur for that function is a rule that files must be on server.
4
votes
3answers
5k views

How to get gallery images?

I have some images uploaded in wordpress posts (eg. post#1, and post#2). Now I've created a new post (eg. Post#3), and in this post I have inserted the WordPress 3.5 gallery, I did not upload any ...
-1
votes
2answers
812 views

How can I create a user generated photo wall

I'm looking for a way to create a user generated photo wall. Like a memorial site so to speak. I would have a big header image up top, than people could submit their own photo and it would post below ...
0
votes
1answer
66 views

Stop WordPress from showing images on non post pages

With regards to how WP displays "preview" text on the home page, category page etc for each post, how do you stop it from including images in this section. I'm not talking about the featured image ...
1
vote
1answer
80 views

Custom Field returning Numerical Value for Image rather than URL

I have been trying a way round my latest WordPress problem all morning and I feel now is the right time to shout and ask for help. I have been trying to create a people directory, I'm there except ...
1
vote
1answer
132 views

Inserting images in multiple posts native gallery

I am trying to find a solution to a problem that Wordpress seems to lack. Here is a scenario: I have uploaded images to a post using the native gallery to display the images. These images then ...
0
votes
2answers
231 views

Remove link on full-size images

Is there a way to remove the link on full size images in posts/pages? I still would like to have it for the other smaller sizes. Since the full size image is already full size, it seems unnecessary ...
0
votes
2answers
801 views

Is there a way to insert multiple images into a post at the same time without using a gallery?

I'm trying to find a way to add multiple images to a blog post in wordpress at the same time. I want to be able to write text above and blow the images, just like a normal blog post. It takes a lot of ...
1
vote
1answer
72 views

Can I get the ID of an inserted / linked image?

I am using this code to get the url of first inserted image in a post. Is there any way I can get the ID of that image. global $post, $posts; $first_img = ''; ob_start(); ...
4
votes
4answers
3k 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
684 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
1answer
107 views

How to add cropped custom header image?

I don't see in my custom theme any option for uploading the header image (although there is a code for it in the header) Do I need to register it somehow? Also, I have a specific size I want to ...
0
votes
2answers
2k views

How do I get gallery thumbnail URL and change the default thumbnail size?

when I create a gallery I get this code generated yet I can;t find out how <img width="150" height="150" src="http://localhost/wp2/wp-content/uploads/2012/06/28_0120-150x150.jpg" ...
1
vote
1answer
110 views

Add attachment for all images in post

I want to move someone else's WordPress blog to a new server. I only have access to the exported XML file of the blog. When importing the XML with the Wordpress Importer plugin, everything went fine ...
0
votes
1answer
612 views

Is there a way to serve different resolution images to different devices?

I am making a mobile site, and I want to serve higher resolution images to devices with high pixel density, and normal image to the rest, is there a Wordpress functionality or plugin to help me do ...
0
votes
2answers
96 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 ...
6
votes
2answers
180 views

Add default Backgrounds

Is there code or a plugin that would make it possible to add default backgrounds, like you can with default headers in Twenty ten. Seems like the same frame work for backgrounds and headers.
1
vote
1answer
129 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
987 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 ...
1
vote
1answer
1k views

Changing Header Image Every N Minutes/Seconds

I am trying to change the header image every "n" second/minutes. Have looked at a number of solutions on the web and am at present using the PHP code fragment below available at ...
0
votes
2answers
760 views

How wordpress handle upload images and how to use them in the code

When I upload images via the standard media uploader I notice that it upload the original images with the same name but creates other cropped copies of the original one and rename them with ...
1
vote
1answer
1k views

attachment.php code or tutorial

I am confused about the exact purpose attachment.php ( and image.php) . I notice many themes dont have them. If single.php displays the image the way I want then is it OK to leave it out. On the other ...
6
votes
1answer
6k views

WordPress Theme Preview Image

I'm developing a custom WordPress theme. When I go to select themes in the Appearance menu, my theme does not have a preview image. Is there something I need to do to get a preview image to show up? I ...
0
votes
2answers
241 views

How can I remove image taxonomy pages from my theme and from Google?

A lot of my theme's image pages are ranking on Google. I'd like to remove these pages entirely from my theme so they no longer rank. When a user hits these image pages the content is taken out of ...
0
votes
2answers
430 views

Dynamic Image Links Depending on Excerpt/'Single Post' View

I'm working on a new Wordpress theme; the default index view displays the excerpts of recent posts. Some posts will be regarding file downloads, and include an image, description, and link to the ...
3
votes
2answers
1k views

How to get Images included in Post

is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the ...
0
votes
2answers
891 views

How can i link a custom post type thumbnail to intermediate size

I'm trying to build a picture gallery with custom post type in my theme and I think i figure it out almost everything but the call in the template, I already have the custom post type in the ...
0
votes
4answers
355 views

Designing a custom archive.php inspired by the Autofocus theme

I've been trying to use the front page from the Autofocus theme in a different theme by copy pasting the code from index.php in the Autofocus theme to my new archive.php file. I have also copied the ...
0
votes
1answer
115 views

In creating a theme, how can i allow a user to change an image outside post/page content?

I'm creating a theme for a particular WordPress site. There's one spot in the sidebar that displays a photo. The user might want to change the photo once a week. He doesn't want to use FTP to upload ...