Removing the null paramaters fixed the problem:
$attachments = get_children(array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
));
Related Posts:
- Set Featured Image programmatically (in admin) with JavaScript?
- How can I include JavaScript that use jQuery on admin side
- force enqueue script to be first in order of prominence
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- WordPress 5.5 – ReferenceError: commonL10n is not defined error
- How do I only load a plugin js on it’s settings pages?
- Adding custom Javascript to the head tag in Admin
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Check javascript file Proper way in functions.php
- Javascript not working in admin
- Use latest jQuery in WordPress (admin interface)
- How do I use WordPress PHP functions in my Javascript code?
- What’s the point of using WordPress’s built in admin-ajax.php?
- How to create popup same as wordpress popup feature
- Refreshing collections in the admin media manager
- wp.template() Not a function
- Get current logged in user under 3.1, re: remove “Howdy”
- Pass a php string to a javascript variable
- Problem in loading javascript in footer
- JQuery not working in my plugin [closed]
- wp-admin post.php JavaScript Links Not Working
- Best approach to fetch data from wp options to js file or php file
- Can someone please tell me what is wrong with my plugin?
- wordpress site | All-in-one-cufon IE Issue
- Change upload folder for a CPT
- Time consuming callbacks in customizer
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- Activate Gallery Options in Media Uploader for Custom Usage
- Redux Framework: Page freezes on typing in Editor
- Using window.onload with Ubermenu
- “Conflict” with jQuery (or its plugins)?
- wordpress add_action() issue in ajax call
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Close Fancybox, sumbit form data and redirect
- Localizing methods for jQuery append prepend wrap parent
- Filter WooCommerce Orders
- admin_enqueue_scripts not rending JS file correctly
- Why does my jQuery plugin show up as text in WordPress?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Why does Thickbox jQuery load on my site?
- Disable submit button order
- Load CSS files in header of Bones theme?
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Add JavaScript in admin in custom plugin [duplicate]
- Custom Jquery in admin breaks media-upload script
- Ajax request sends url rather than data
- Javascript from Easy-Fancybox place into footer
- Default scripts added to each admin page
- Adding a jQuery modal dialog to the admin area
- Weird jquery problem when upgrade to WordPress 3.1
- Jquery POST Ajax Return null data in wordpress
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Overriding inline !important CSS with Javscript code snippet with media query
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- How to properly enqueue jQuery knob on WordPress without conflict?
- Ajax Call not Working in Plugin
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- Website always load twice on start
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- How to check a category checkbox using JavaScript
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Add a jQuery snippet for sepcific user role
- show-hide based on select option jquery wordpress
- WordPress Admin Thickbox: Remove Margins/Padding
- Javascript in plugin not working
- Enqueue script throws error in console
- Possible jquery / library conflict in plugin usage
- Ajax, jQuery and WordPress
- Scripts are not called until I login from wordpress backend
- Clear custom field when new tag is added
- Why won’t the Comprehensive Google Map Plugin load?
- get_option include in my adsense
- how to call jQuery in admin as well as in homepage
- Hiding the media-new.php File URL option via jQuery
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Why my vertical tab js code is refreshing the page continuously? [closed]
- Element works, but not on wordpress site [duplicate]
- Load css classes after using ajax calls
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Javascript as Jquery Function Call?
- Count div with class (.length) only shows 0 [closed]
- AJAX call not initializing for non-admins in WordPress
- JavaScript sleep/wait before continuing [duplicate]
- How do I check if an element is hidden in jQuery?
- WordPress last login foreach user
- How to Use JSON With AJAX?
- Adding with javascript to admin bar. Works in Chrome/Safari, not Firefox
- Get image URL from media library in input
- How can I remove the “updates” menu in the WordPress Admin panel?
- Post Comments with Ajax in WordPress
- Fixed layout for admin section
- Add logo to admin menu in my plugin
- internal anchor links no longer working after upgrade
- send information from the thickbox image uploader second tab
- Private messaging plugins + custom admin