Elementor Custom Skin - Version 1.1.4

Version Description

  • Fixed issue with ACF fields for Elementor PRO 2.6.X
Download this release

Release Info

Developer dudaster
Plugin Icon 128x128 Elementor Custom Skin
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

Files changed (3) hide show
  1. ele-custom-skin.php +1 -1
  2. readme.txt +4 -1
  3. skins/skin-custom.php +7 -3
ele-custom-skin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Ele Custom Skin
4
- * Version: 1.1.3
5
  * Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
6
  * Plugin URI: https://www.eletemplator.com
7
  * Author: Liviu Duda
1
  <?php
2
  /*
3
  * Plugin Name: Ele Custom Skin
4
+ * Version: 1.1.4
5
  * Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
6
  * Plugin URI: https://www.eletemplator.com
7
  * Author: Liviu Duda
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page-builder, elementor, loop, archive list, post widget, skin, custom
4
  Donate link: https://www.paypal.me/dudaster
5
  Requires at least: 5.0
6
  Tested up to: 5.2.3
7
- Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,9 @@ Add to your template a Post or Post Archive widget and from Skins select Custom
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 1.1.3 =
63
  * Fixed issue with Archive dynamic background
64
  * Fixed issue with Post Custom Skin dynamic background in editor mode
4
  Donate link: https://www.paypal.me/dudaster
5
  Requires at least: 5.0
6
  Tested up to: 5.2.3
7
+ Stable tag: 1.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.1.4 =
63
+ * Fixed issue with ACF fields for Elementor PRO 2.6.X
64
+
65
  = 1.1.3 =
66
  * Fixed issue with Archive dynamic background
67
  * Fixed issue with Post Custom Skin dynamic background in editor mode
skins/skin-custom.php CHANGED
@@ -118,13 +118,17 @@ class Skin_Posts_ECS extends Skin_Base {
118
  }
119
 
120
  protected function get_template(){
121
- global $ecs_render_loop;
122
- $ecs_render_loop=get_the_ID().",".$this->get_instance_value( 'skin_template' );
 
 
 
123
  $settings = $this->parent->get_settings();
124
  $this->pid=get_the_ID();//set the current id in private var usefull to passid
125
  if (!$this->get_instance_value( 'skin_template' )) return;
126
  $return = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $this->get_instance_value( 'skin_template' ) );
127
- $ecs_render_loop=false;
 
128
  return $return;
129
  }
130
 
118
  }
119
 
120
  protected function get_template(){
121
+ global $ecs_render_loop, $wp_query;
122
+ $old_query=$wp_query;
123
+ $new_query=new \WP_Query( array( 'p' => get_the_ID() ) );
124
+ $wp_query = $new_query;
125
+ $ecs_render_loop=get_the_ID().",".$this->get_instance_value( 'skin_template' );
126
  $settings = $this->parent->get_settings();
127
  $this->pid=get_the_ID();//set the current id in private var usefull to passid
128
  if (!$this->get_instance_value( 'skin_template' )) return;
129
  $return = \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $this->get_instance_value( 'skin_template' ) );
130
+ $ecs_render_loop=false;
131
+ $wp_query = $old_query;
132
  return $return;
133
  }
134