You can grab embed codes from hosted video sites. 'desc' => _('Vimeo video ID','suarezthemelocal'), 'desc' => _('Youtube video ID','suarezthemelocal'), That’s called Conditional Logic, I recommend you to use Meta Box Conditional Logic, after install that plugin to your site, you can update your array like this: array( You can grab embed codes from hosted video sites.','suarezthemelocal') 'name' => _('Video Embed Code','suarezthemelocal'), 'desc' => _('Vimeo video ID','suarezthemelocal') 'name' => _('Vimeo Video ID','suarezthemelocal'), ![]() 'desc' => _('Youtube video ID','suarezthemelocal') 'name' => _('Youtube Video ID','suarezthemelocal'), modifying and maintaining your WordPress sites, as well as The WP Butler, a service for keeping your site maintained. Example usage: showhide type'pressrelease'Press Release goes in here. Similar to what Engadget is doing for their press releases. Allows you to embed content within your blog post via WordPress ShortCode API and toggling the visibility of the content via a link. 'placeholder' => _( 'Select an Item', 'suarezthemelocal' ), By default the content is hidden and user will have to click on the 'Show Content' link to toggle it. 'html5' => _( 'HTML5 Video', 'suarezthemelocal' ), 'host' => _( 'Video Hosts', 'suarezthemelocal' ), Array of 'value' => 'Label' pairs for select box Note: If you couldn\'t find host of your video file in the dropdown list, you can paste the embed code of file in the "Video Embed Code" box.', 'rwmb' ), 'desc' => _( 'Select host of your video file. 'name' => _( 'Video File Host', 'suarezthemelocal' ), ![]() On select with value hosts 2 fields (Youtube and Vimeo) should appear, and if value is html5 the remain (Embed) should appear. I have a select list with values hosts and html5 and 3 custom fields.
0 Comments
Leave a Reply. |