Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2011

An attachment is an image or other file uploaded through the post editor's upload utility. Attachments can be displayed on their own 'page' or template. For more information, see Using Image and File Attachments.

1 vote
1 answer
2k views

How to specify width and height in the_content for image attachments

When the_content print attachment images (attachment template) it automatocally displays the picture. Is there a hook to specify the width and height of the image displayed?
José Pablo Orozco Marín's user avatar
2 votes
1 answer
1k views

How to add multiple checkbox elements to media attachments?

Based on solved question from: How to add a checkbox element to attachments editor with example Theres an example of multiple Checkboxes, for example: Colors, patterns, etc... …
José Pablo Orozco Marín's user avatar
3 votes
1 answer
718 views

Remove "From computer" media tab for posts with existing attachments?

On editing the attachments of a post whith at least one attachment previously uploaded, how do I remove the From computer tab and redirect to the Gallery tab? …
José Pablo Orozco Marín's user avatar
8 votes
1 answer
11k views

Get all post attachments except featured image

get: All attachments links except featured image. … All PDF attachments links only. I was reading: http://www.wprecipes.com/how-to-show-wordpress-post-attachments http://johnford.is/programmatically-pull-attachments-from-wordpress-posts/ …
José Pablo Orozco Marín's user avatar
6 votes
1 answer
2k views

Trying to hide buttons from Attachment window

To simplify the Media Library layout to users when uploading an image, sometimes i hide the following fields: function myAttachmentFields($form_fields, $post) { if ( substr($post->post_mime_type …
José Pablo Orozco Marín's user avatar