| name | language | licence |
|---|---|---|
| WordPress custom post listing | PHP | BSD |
| Export WordPress tables | PHP | BSD |
| Untitled Snippet | Other | |
| Colored | CSS | Other |
| SHOW WORDPRESS POST ATTACHMENTS | PHP | BSD |
| WORDPRESS GET URL | PHP | BSD |
| truncate a wordpress post - PHP - Snipplr | PHP | BSD |
| CUSTOM TEMPLATES FOR POSTS IN WORDPRESS | PHP | BSD |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >
language: PHP
licence: BSD
SHOW WORDPRESS POST ATTACHMENTS
options: view full snippet • send to code collector
SHOW WORDPRESS POST ATTACHMENTS
//taken from wordpress-- it took me a whole to find this on their site
// place inside loop
$args = array(
'post_type' => 'attachment',
'numberposts' => null,
'post_status' => null,
'post_parent' => $post->ID
);
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $attachment) {



library
buttons (3)
wp (93)