Tagged Questions
1
vote
1answer
77 views
Show how many images are attached to a post/page on compose page
On the front-end, I'm using a query to show all attachments attached to the current post. However, on the compose page, there's no way for a user to see how many images are attached without opening up ...
0
votes
1answer
41 views
dynamically get post attachment while editing
I want to show a meta box on the post edit screen, that contains a list of the images attached to the post. I need the meta box to work for new posts as they are being created. It should update ...
1
vote
1answer
633 views
wp_generate_attachment_metadata gives me an empty array
I have a custom post type and a metabox with a file input.
I can insert the attachment, but I can't update the attachment metadata and I don't know how to fix it because I don't receive any error.
...
1
vote
3answers
897 views
Add multiple images to a page sidebar
What I am trying to achieve is this:
I have a simple page and I want to dynamically add multiple images to it on the sidebar one underneath another. I was thinking about either using meta boxes, post ...
0
votes
0answers
185 views
add_meta_box to attachment or edit media in admin [closed]
is it possible to use add_meta_box or similar for the attachment edit page?
Need to add quite a lot of custom fields/functions.
function reference says no but seems odd that we can't or that there's ...
0
votes
1answer
262 views
Upload attachment from external site
For example, we have some image on the external site:
http://site.com/image.png
How do I upload this image to my wordpress as an image attachment by php?
Image should be copied to my uploads ...
3
votes
4answers
3k views
custom fields for attachments?
is it possible to add extra fields via the functions.php script for attachments in wordpress?
Tried loads of examples but none seem to work. Worried an existing plugin might be affecting my attempts ...
5
votes
1answer
2k views
Put the media uploader in a metabox
I find it very unnecessary to have an "add image" button that brings me to yet another screen that will let me upload content to my post.
Ideally I would like to have a meta box with the option to ...
10
votes
5answers
4k views
Can I add a Category Metabox to attachment?
I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so:
add_action('init', 'reg_tax');
function reg_tax() {
...