diff --git a/includes/class-tni-core-custom-fields.php b/includes/class-tni-core-custom-fields.php index 27f92ce..b894998 100644 --- a/includes/class-tni-core-custom-fields.php +++ b/includes/class-tni-core-custom-fields.php @@ -121,6 +121,22 @@ public function register_field_groups() { 'toolbar' => 'full', 'media_upload' => 'yes', ), + array ( + 'key' => 'field_audio_url', + 'label' => __( 'Audio URL', 'tni-core' ), + 'name' => 'audio_url', + 'type' => 'url', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'default_value' => '', + 'placeholder' => '', + ), ), 'location' => array ( array ( diff --git a/readme.txt b/readme.txt index fe3559b..fce6568 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: misfist Tags: custom Requires at least: 4.7 -Tested up to: 4.7.5 -Version: 1.2.6 +Tested up to: 4.8 +Version: 1.2.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -22,6 +22,10 @@ This section describes how to install the plugin and get it working. == Changelog == += 1.2.7 June 22, 2017 = +* #29 Added `audio_url` custom field. + * To access value: `get_post_meta( post->ID, 'audio_url', true );` + = 1.2.6 June 21, 2017 = * Show scheduled (future) single posts to authenticated users diff --git a/tni-core-functionality.php b/tni-core-functionality.php index 8967553..0cc2dc5 100644 --- a/tni-core-functionality.php +++ b/tni-core-functionality.php @@ -10,7 +10,7 @@ * Text Domain: tni-core * Domain Path: /languages * - * Version: 1.2.6 + * Version: 1.2.7 * * @package Tni_Core_Functionality */ @@ -52,7 +52,7 @@ * @return object Tni_Core */ function Tni_Core() { - $instance = Tni_Core::instance( __FILE__, 'l.2.6' ); + $instance = Tni_Core::instance( __FILE__, 'l.2.7' ); return $instance; }