Media Library Not Working
-
Hi,
I have a very frustrating issue with a website which the media library isn’t loading any images in grid view (fine in list view).
I think it is possibly a theme plugin I have added as it works when I disable it but no idea what would be causing the issue (I think it is because I am using admin-ajax.php?
//Enqueue Ajax Scripts function enqueue_country_ajax_scripts() { wp_register_script( 'filter-ajax-js', '/wp-content/themes/**/includes/plugins/suppliers/assets/js/filter.js' ); wp_localize_script( 'filter-ajax-js', 'ajax_country_params', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); wp_enqueue_script( 'filter-ajax-js' ); wp_enqueue_style( 'suppliers', '/wp-content/themes/***/includes/plugins/suppliers/assets/css/suppliers.css' ); } add_action('wp_enqueue_scripts', 'enqueue_country_ajax_scripts');
If you need to see full code of the plugin let me know and I will share the code somewhere or email it to you.
EDIT – Code below:
suppliers.php – https://codepad.org/6w7UDRT3
plugin.functions.php – https://codepad.org/KkXfQFzx
suppliers.js – https://codepad.org/AdZi5j4UThanks in advance for your help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Media Library Not Working’ is closed to new replies.