This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $args = array( | |
| 'numberposts' => -1, // Using -1 loads all posts | |
| 'orderby' => 'menu_order', // This ensures images are in the order set in the page media manager | |
| 'order'=> 'ASC', | |
| 'post_mime_type' => 'image', // Make sure it doesn't pull other resources, like videos | |
| 'post_parent' => $post->ID, // Important part - ensures the associated images are loaded | |
| 'post_status' => null, | |
| 'post_type' => 'attachment' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function remove_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); | |
| unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); |
NewerOlder