3
votes
2answers
3k views

Automatic image renaming based on title

Is there a plugin or a "hack" that can help me do this? I have spent hours try to figure this out so I would greatly appreciate nay help. I have WP 3.1 running php5 Thanks! eg.: ...
1
vote
1answer
584 views

Custom Post Type - List all attachments on Edit Screen

I'm currently building a custom post type in Wordpress and I need to be able to list all attachments inside the edit screen. I know how to do this on the front-end template, but anyone know the code ...
0
votes
1answer
707 views

Get the post attached to a image attachment

Assuming I know the image attachment ID, how can I get the post permalink to which is attached (if any) ?
0
votes
1answer
962 views

How to query details of images in gallery that is attached to a post

I have several images attached to each post. I need to generate a gallery, but because it's heavily customized I don't want to use a gallery plugin, nor the gallery short code. It's also situated in a ...
2
votes
2answers
1k views

sanitize attachment filename

I'm looking for a way to sanitize the filename of user uploaded attachments. I thought that wordpress already did it but I faced preblems after an user uploaded an attachment containing a '°' . That ...
2
votes
4answers
4k views

using upload image with media_handle_upload .. but !

I'm tring to upload image in wordpress by using some function .. I found the way to upload images but there are one problem .. when the user upload his image , wordpress create more than one image ...
0
votes
2answers
208 views

Transferring theme and imported post attachments

Recently I have deployed 2 sites from my local development area to the live site and ran into some issues when importing the posts. The reference link for attachments still points to my localhost for ...
2
votes
2answers
394 views

Importing media medium setting image gallery / image attachments

I have recently imported an image gallery to a clean WP install as I am deploying the site to a live domain. I have imported the posts but the images use the medium size for attachements. I would ...
0
votes
3answers
1k views

Displaying Post Attachment(s) at Top of single.php

I'm using the latest build of WP and would like to display the first image attached to the post at the top of the post content. What code do I have to add to single.php to make this happen?
12
votes
2answers
5k views

Creating an Image-Centric Custom Post Type?

Does anyone have any tips for creating an image-centric custom post type? To elaborate, my blog has rotating header images, shown below: The two images in the top left are randomized, and exist as ...