Tagged Questions

Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

learn more… | top users | synonyms (3)

8
votes
3answers
5k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
0
votes
2answers
915 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 ...
0
votes
3answers
2k views

Can't seem to see images on my machine but can on the server

Hello I just started using wordpress (complete noob) but I need a bit of help. I have installed wordpress and on a linux/centos webserver and this works fine. However when I use another machine, open ...
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. ...
0
votes
2answers
612 views

Get thumbnail URL :)

I try to get thumbnail URL correctly... In my functions.php, I have theses lines: <?php add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 'emphasis', 132, 82, true ); ?> ...
1
vote
1answer
35 views

Suspicious mesage appears instead of images

My installation is of Multisite setup . when I upload an image and try to view it, getting a message 'go home baby!!' instead of image Actually the specific sub-site is also mapped with a custom ...
0
votes
5answers
284 views

Resizing Picture

I'm new to WP and am not sure how to re-size a picture. I want to scale down the pic of the guy on this page: http://www.millermusiclessons.com/ If you view the page source and find the source of ...
0
votes
2answers
353 views

How to add image for all posts associated to specified category?

simply i want to add image beside every post depend on the category something like that http://network.smashingmagazine.com/ you will see there is an image beside every post, i want it to be related ...
0
votes
1answer
85 views

Why does WP allow to view and media item as a page

Every media item that is uploaded to Wordpress can be viewed in a page. This can be seen if you browse to the Media section, hover on any item and click view. Are there any benefits to this because I ...
0
votes
1answer
788 views

If custom image header does not exist display text header

I've added a theme options page to my site (in my functions.php file): add_custom_image_header('', 'admin_header_style'); My header.php contains this code, which displays the Featured Image as the ...
1
vote
4answers
4k views

Using Taxonomy Image code with my get_categories code

I'm using Taxonomy Images to associate images with categories. I'm using the following code, one is to display the categories, the other to display the images. Here is the code that displays my ...
0
votes
1answer
182 views

get_image_tag filter not working

I'm trying to get the custom field data off an attachment and display it following the image tag in a page/post using the get_image_tag filter. I'm using the same function to get the same data and ...
5
votes
1answer
5k views

remove links from images using functions.php

I am looking for a way to remove the attachment link from images in the post content. I would like to add this to the functions.php in my theme. I know you can disable this in the post on a per ...
1
vote
3answers
437 views

Best option for photo/gallery handling?

Before I finally start blogging there's one last question that I need help with. My blog will be photo-focused. We're talking about 70-80% of photos compared to 20-30% of text. There might be some ...
0
votes
1answer
109 views

Looking for a photo management solution

I need a good solution to manage a lot of photos (several thousand+). My ideal scenario is to rip my camera card onto an FTP, then, a single gallery is created from that card rip. Someone can go in to ...
6
votes
1answer
6k views

Removing Image and Caption Dimension Attributes

This question is an offshoot from the this discussion on removing dimension attributes from images. The solution code provided on that thread works very well except that it has the unfortunate side ...
2
votes
1answer
334 views

Best way to strip character entities (%20 etc)

I have a heap of images inside MovableType, on an old server. There are plenty which have character entities like %20 to represent spaces. I've used some plugins to import the images and change the ...
0
votes
1answer
688 views

How to change background image from Wordpress Gallery

I am building a custom theme for a client in Wordpress: She wants the background to change when you click on a gallery thumbnail in a post. It must be a solution, that doesn't involve any coding on ...
5
votes
1answer
1k views

Add existing images from Media Library in to custom gallery

I have [gallery] inside the post, and I'm interested in a way to add already existing images from media library in to this gallery? once I trying add any image I have only one option - insert into ...
1
vote
1answer
1k 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 ...
0
votes
2answers
1k views

Uploading images in custom post form

I have custom form for posting in my theme file. I also need to upload photos(videos also but photos are more important now) and I prepared form using wp handle upload function. It's working, images ...
0
votes
1answer
404 views

Plugin to hide image in excerpt

I was looking for a plugin that will enable me to hide an image on the excerpt, but show it on the single post view. Anyone knows if there is any?
0
votes
1answer
322 views

Image menu showing categories in page

I'm trying to display different images in a page that links to categories. Currently i have a page that shows the categories and the pages for the categories but it needs a slight change. I need to ...
0
votes
1answer
996 views

wp_nav_menu: output featured image of each page listing

Context: I am building a portfolio index where I can sort the individual project links in my sidebar by priority of appearance. I've successfully done this using the wp_nav_menu(), where each project ...
2
votes
2answers
4k views

Retrieving images from a NextGEN gallery

I'm not sure if this is possible but after extensive searching I can't find an answer. What I want to do is to get all images from a NextGEN gallery so I can display them in a custom slideshow within ...
2
votes
0answers
333 views

Attachment 0×0 size error [closed]

My theme uses 8 different thumbnail sizes. I imported my local installation to the final server using phpmyadmin to export the wordpress database. Everything is smooth except for the attachments: many ...
1
vote
1answer
853 views

Add custom field to image editor

How do I add custom field to the image editor, such as under the image 'Description' field? To be much clearer, it's where the settings for the images are after you upload an image in the attachment ...
0
votes
1answer
325 views

Thumbnail Image Rounded Corners w CSS (or any other good method)

I've been researching how to display thumbnails with rounded images, but every solution ends up running out of gas. One trick I tried was wrapping the thumbnail in a division with the same size and ...
0
votes
1answer
56 views

How to post images on my blog with a pre-defined border

The images in this blog post: http://wordfruit.com/blog/the-hole-through-the-earth-3/ ...have borders around them -- hatched lines. But in this post: http://wordfruit.com/blog/copywriting-for-fish/ ...
1
vote
1answer
627 views

Stripping the_content() from images then displaying them seperately

Ok, I've got content with images removed using this code: $content = strip_tags(get_the_content(), ...
1
vote
3answers
4k views

remove and disable image link in functions.php

Is there a way to disable image or thumbnail link URL, as well as remove existing image/thumbnail links in functions.php? NOT the setting under media as posted in this link, please.
0
votes
1answer
516 views

How to get post id of first child of the same post type?

Is there a function that will let me get the post id of the first child (of the same post type, not attachment)? I could always just run a loop via wp_query but that seems like overkill. :/ The goal ...
6
votes
4answers
9k views

Stop wordpress from hardcoding img width and height attributes

I'm wondering if there's a simple way top stop WordPress automatically hardcoding featured image height and width attributes, other than using regex... As I'm using a flexible grid for my project ...
1
vote
5answers
638 views

How to associate an image with a term taxononmy and publish it on frontpage?

I couldn't find the solution anywhere else, so I believe is a valid question for this website. I think my problem is divided in two parts. I created a custom taxonomy called "Type" and within it, I ...
9
votes
1answer
5k views

Adding Category/Tag/Taxonomy Support to Images/Media

I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with: add_action('init', ...
1
vote
0answers
172 views

In Loop, if a Gallery, Only Pull First Image [closed]

I'm trying to create a loop that only displays the post types: "photo" and "gallery". If it's a gallery I would like to display only one of the images, preferably the first. I'm a little confused ...
0
votes
1answer
482 views

How to use custom fields to replace top-level parent title with an image using wp_list_pages?

I'd like to integrate get_post_meta into the wp_list_pages mix so that any top-level parent list items get replaced with images ONLY when a key exists in the post's custom fields section. I can't do ...
1
vote
1answer
99 views

Featured Image Thumbnail Creation

What function or script creates the hard-cropped feature image when a post is saved? Regardless if I stipulate a size when saving the featured image in the media library (like the medium size), a new ...
3
votes
1answer
751 views

How to link to the image editor's Edit Image function?

How do I link to the image editor's Edit Image function from the front end? I know that I can open the lightbox with a simple link, such as <a ...
1
vote
1answer
305 views

image in my post disappeared after I upload website to remote server

Before I upload my website to server, I created post with images which are uploaded to media, their url are, for example: http://localhost:40952/wp-content/uploads/2011/09/study_in-En.gif After I ...
1
vote
1answer
367 views

get_post_meta not working on category.php

I'm referencing an attached image in my header.php page which is displayed as a full screen background on my posts: global $wp_query; $page_id = $wp_query->get_queried_object_id(); ...
0
votes
1answer
764 views

Image resizing - TimThumb vs convert on upload?

I'm using jQuery Supersized to display a full screen background slideshow on my blog, and I'm using mobile detection to serve a smaller version of the images to mobile devices so it will load faster. ...
0
votes
2answers
2k views

Allow users to upload multiple images to their profile

I've asked this before but to no avail. I need the ability for any user (From Contributor up) of my website to upload a minimum of 5 and a maximum of 10 images to their profile and have they ...
0
votes
1answer
248 views

Migrating a website using custom image tags to use featured images instead

I have a site that was built using a Wordpress 2.x era theme that uses a custom field "image" to hold the URL to use as a featured image for each post. I am migrating to use the PageLines Platform ...
-1
votes
1answer
176 views

wordpress featured image

I'm new to Wordpress and I'm trying to create a new theme for it. I've downloaded the latest version (3.2.1) and installed it successfuly. But when I install my wordpress theme (to start to add the ...
1
vote
2answers
2k views

Include caption underneath post images

Hello I've been struggling for ages trying to find a solution for this. Basically I just want to retrieve all images from a post and display a caption underneath. Here is the code i'm using: ...
0
votes
1answer
121 views

Images don't update after being edited

I have many pictures on my site and after posting for a while, I realized that I should have watermarked them. So I did just that, I downloaded all the images and watermarked them. I uploaded a few of ...
0
votes
1answer
98 views

Right click&copy images: protection

I saw there's a Wordpress plugin that prevents people from using right click on text or images, called WP Protect. I was wondering if there's a way to hardcode it into Wordpress instead of using a ...
0
votes
2answers
3k views

How to access & display images from a post without textual content ( and vice versa) according to best wordpress practices

Looking to create a customized single.php for my posts. In one column I'd like to display all images added through the add media function (inserted into post). In the next column all other content ...
1
vote
2answers
937 views

Can I attach an image to a different post?

Image galleries display those images that were uploaded to that post, by default. If I wanted to move an image to a different post, so it appeared there instead, would I have to delete and re-upload? ...