another question about image.
Can I add/attach images to post without adding it to post? The reason behind this is so that I can manipulate it whatever I want using API.
|
another question about image. Can I add/attach images to post without adding it to post? The reason behind this is so that I can manipulate it whatever I want using API. |
|||||
|
|
There is a Plugin called Attachments http://wordpress.org/extend/plugins/attachments/ Maybe this is something you looking for. |
|||||||
|
|
Yes, you can. If you upload the image using the media uploader on a post's edit screen, or use update_post() to set the You can retrieve all images attached to a specific post by calling |
|||
|
|
|
Yes, its definitely possible: I do this in one of my themes. You simply add your images to the post as if you were going to insert it into the post, but then just click save all changes, and do not actually click the button "Insert Into Post". Then, you can access that post's gallery images using something like:
where I've defined that function in functions.php:
And then do whatever you'd like to those images in your template files. (In my case, I loop through the images and put them in a jQuery slider). There are also plugins that you could use, but its always best to minimise plugins if you can help it. |
||||
|
|