Try this plugin:
postmaster
I’m now trying to figure how to extract and post the gps coordinates from my iphone pics.
Thread Starter
mcdlt
(@mcdlt)
Some updates on this. This only happens if you change the category after you’ve already published it. The single images stick with the category of the original publishing.
Thread Starter
mcdlt
(@mcdlt)
I’m just wondering why removing the /%category%/ from the permalink structure would also remove the attachment part of the permalink. It seems like it would make it less likely to differentiate them as single images. I hope that made sense.
I found this thread very useful. Sivar’s function was missing the last line which seemed to fix the problem I was having.
function get_parent_category() {
foreach ((get_the_category()) as $cat) {
if ($cat->category_parent) return $cat->category_parent;
else return $cat->cat_ID;}
}