diff --git a/extensions/population-method-categories/class-fw-extension-population-method-categories.php b/extensions/population-method-categories/class-fw-extension-population-method-categories.php index bfe233b..b8836fd 100644 --- a/extensions/population-method-categories/class-fw-extension-population-method-categories.php +++ b/extensions/population-method-categories/class-fw-extension-population-method-categories.php @@ -181,6 +181,7 @@ public function get_frontend_data($post_id) array_push($collector['slides'], array( 'title' => get_the_title(), + 'multimedia_type' => $this->multimedia_types[0], 'src' => wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())), 'desc' => get_the_excerpt(), 'post_id' => get_the_ID(), diff --git a/extensions/population-method-custom/class-fw-extension-population-method-custom.php b/extensions/population-method-custom/class-fw-extension-population-method-custom.php index 4171f9d..0d47dab 100644 --- a/extensions/population-method-custom/class-fw-extension-population-method-custom.php +++ b/extensions/population-method-custom/class-fw-extension-population-method-custom.php @@ -38,7 +38,7 @@ public function get_population_options($multimedia_types, $custom_options) 'label' => false, 'desc' => false, 'type' => 'slides', - 'multimedia_type' => $media_type_values, + 'multimedia_type' => array_keys($media_type_choices), 'thumb_size' => array('height' => 75, 'width' => 138), 'slides_options' => array( 'multimedia' => array( diff --git a/extensions/population-method-posts/class-fw-extension-population-method-posts.php b/extensions/population-method-posts/class-fw-extension-population-method-posts.php index 812ce49..5e7a138 100644 --- a/extensions/population-method-posts/class-fw-extension-population-method-posts.php +++ b/extensions/population-method-posts/class-fw-extension-population-method-posts.php @@ -143,6 +143,7 @@ public function get_frontend_data($post_id) setup_postdata($post); array_push($collector['slides'], array( 'title' => get_the_title(), + 'multimedia_type' => $this->multimedia_types[0], 'src' => wp_get_attachment_url(get_post_thumbnail_id($post->ID)), 'desc' => get_the_excerpt(), 'extra' => array( diff --git a/extensions/population-method-tags/class-fw-extension-population-method-tags.php b/extensions/population-method-tags/class-fw-extension-population-method-tags.php index 191232b..65a0069 100644 --- a/extensions/population-method-tags/class-fw-extension-population-method-tags.php +++ b/extensions/population-method-tags/class-fw-extension-population-method-tags.php @@ -181,6 +181,7 @@ public function get_frontend_data($post_id) array_push($collector['slides'], array( 'title' => get_the_title(), + 'multimedia_type' => $this->multimedia_types[0], 'src' => wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())), 'desc' => get_the_excerpt(), 'extra' => array() diff --git a/manifest.php b/manifest.php index f4bd585..a01b59e 100644 --- a/manifest.php +++ b/manifest.php @@ -2,6 +2,6 @@ $manifest['name'] = __( 'Population Methods', 'fw' ); $manifest['description'] = ''; -$manifest['version'] = '1.0.0'; +$manifest['version'] = '1.0.1'; $manifest['github_update'] = 'ThemeFuse/Unyson-PopulationMethods-Extension';