| name | language | licence |
|---|---|---|
| Export WordPress tables | PHP | BSD |
| 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 |
| SHOW DIFFERENT AMOUNT OF POSTS ON WORDPRESS HOME PAGE THAN OTHER PAGES | PHP | BSD |
| ANAGE MULTIPLE WORDPRESS SITES WITH ONE DATABASE AND ONE CODE BASE | PHP | BSD |
| WORDPRESS QUERY POSTS OF CERTAIN CUSTOM FIELD VALUES | PHP | BSD |
< 1 2 3 4 5 6 7 8 9 10 11 12 >
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)