0

WP has one major problem and that's image handling. Each image is treated as a post and if you "attach" an image to a page, you cannot un-attach it.

Without installing a gallery plugin and without inserting them directly in the post, what is the best way to associate multiple images to a page / post?

Currently I create 5 custom fields if I want to attach max 5 images. It works, but it's not the best way.

Open to suggestions :)

3
  • I agree that image handling is horrible, but what do you want instead? How do you imagine things should work?
    – s_ha_dum
    Commented Feb 28, 2014 at 15:23
  • 1
    I would take a look at the new Projects theme by WooThemes. (in the repo). I think it is saving the attachment IDs as meta. I tried to build something similar 2 years ago but stalled out. Commented Feb 28, 2014 at 15:35
  • @s_ha_dum WP must completely stop treating any attachment as a post and develop a new file / image handler system. Until then, I just have to make do with whatever is at hand.
    – Steven
    Commented Feb 28, 2014 at 15:51

1 Answer 1

1

Advanced Custom Fields is a great solution - allows you to attach anything to your pages/posts/custom post types, great interface for setting it up, and very flexible. Good documentation as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.