Add icons
-
Hi there!
Thank you very much for the plugin, really making things easier ^^
I just had issues with the “add icon” functionnality (though it’s really cool you added it):
When I create or edit a custom post type, there’s an “add icon” button (of course you know, YOU put it there ^^), but when clicked, nothing happens.
Threw a (quick and naive) eye on the problem and console showed an error in add-edit.js line 12:file_frame = wp.media.frames.file_frame = wp.media({ <strong>Uncaught TypeError: Cannot read property 'frames' of undefined (repeated 5 times)</strong> title: 'Add Icon',
I’m no expert, especially with js but I think it might be the first line’s
function($)
that should be replaced with
jQuery(document).ready(function($)
And of course, I don’t forget the “)” at the end of the script
Thing is… I tried, and although the error goes away, the “add icon” button still doesn’t work :/
Then… How can I say? … Help !! ??
Anyway, thanks a lot for your work !!! ^^
https://www.ads-software.com/extend/plugins/custom-post-type-maker/
- The topic ‘Add icons’ is closed to new replies.