That seems to work. Thanks Elliot. Glad I could help.
Jesse
I’ve opened an issue on the project’s github and linked back to here.
Yes, that’s what I’m seeing. I put in a console.log, see if this helps:
input.min.js?ver=5.1.7:587 s.replace:
2015-01-22 22:56:56.556input.min.js?ver=5.1.7:588 function replace() { [native code] }
2015-01-22 22:56:56.556input.min.js?ver=5.1.7:585 s:
2015-01-22 22:56:56.556input.min.js?ver=5.1.7:586 flexible_content
2015-01-22 22:56:56.556input.min.js?ver=5.1.7:587 s.replace:
2015-01-22 22:56:56.557input.min.js?ver=5.1.7:588 function replace() { [native code] }
2015-01-22 22:56:56.557input.min.js?ver=5.1.7:585 s:
2015-01-22 22:56:56.557input.min.js?ver=5.1.7:586 gallery
2015-01-22 22:56:56.557input.min.js?ver=5.1.7:587 s.replace:
2015-01-22 22:56:56.557input.min.js?ver=5.1.7:588 function replace() { [native code] }
input.min.js?ver=5.1.7:585 s:
2015-01-22 22:56:57.004input.min.js?ver=5.1.7:586 Object {type: "star_rating"}
2015-01-22 22:56:57.006input.min.js?ver=5.1.7:587 s.replace:
2015-01-22 22:56:57.006input.min.js?ver=5.1.7:588 undefined
2015-01-22 22:56:57.007input.min.js?ver=5.1.7:592 Uncaught TypeError: undefined is not a function
Hmmm.. looks like there was a conflict with this add-on:
https://github.com/kevdotbadger/acf-star-rating
Disabling the plugin looks to have solved the problem. Can you try to duplicate the issue by trying that plugin?
Thanks,
Jesse
I did what you asked and got the same problem, new error. So I replaced the min version with the dev version and just renamed it so it would pull that instead. Does line 586 help?
TypeError: undefined is not a function (evaluating 's.replace('_', '-')')
http://localhost:8888/wordpress/wp-content/plugins/advanced-custom-fields-pro/js/input.min.js?ver=5.1.7 line 586
Getting another one in Safari;
TypeError: undefined is not a function (evaluating 'e.replace("_","-")')
http://localhost:8888/wordpress/wp-content/plugins/advanced-custom-fields-pro/js/input.min.js?ver=5.1.7 line 1
@Matthew – I’m looking for a similar solution for HTML5 video. Unfortunately the oembed field type doesn’t contain enough extra fields for the required information like; mp4/ogg/webm paths + attributes + track data.
See: http://www.html5rocks.com/en/tutorials/video/basics/
The reason I need this is that a client doesn’t want their videos on sites like Vimeo or YouTube & a couple of those codecs I can link directly from Dropbox (except mp4). Regardless, thank-you Elliot Condon for the system you’ve created. If I can find a solution or create one I’ll try and post a link here.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.