Search Results
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 |
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
594
views
Can't filter wp_get_attachment_link
Can't figure out why this won't work:
function my_get_attachment_link($html){
$postid = get_the_ID();
$html = str_replace('<a','<a rel="shadowbox['.$postid.']"',$html);
return $html;
}
ad …
3
votes
1
answer
5k
views
remove missing image attachments
Best way to programatically remove attachments that are missing images? … I ask because after using a caching plugin, I have images that have been input in the database as attachments that don't actually exist. …
2
votes
2
answers
620
views
Best way to programatically add "rel" attributes to page and post images
For single posts and pages, I would like to add certain rel attributes to all the images on the contained therein added with the "Add Image" functionality on the edit screen.
The attribute would be r …