TemplatesNext ToolKit - Version 1.0.5

Version Description

Download this release

Release Info

Developer marsian
Plugin Icon 128x128 TemplatesNext ToolKit
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (3) hide show
  1. readme.txt +1 -1
  2. shortcodes.php +6 -4
  3. tx-toolkit.php +1 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: marsian
4
  Tags: shortcode, shortcodes, columns, column, section, sections, testimonials, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
5
  Requires at least: 3.6
6
  Tested up to: 4.1
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: shortcode, shortcodes, columns, column, section, sections, testimonials, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
5
  Requires at least: 3.6
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
shortcodes.php CHANGED
@@ -38,15 +38,15 @@ function tx_blog_function($atts, $content = null) {
38
  'carousel' => 'no',
39
  ), $atts);
40
 
41
- $post_in_cat = tx_shortcodes_comma_delim_to_array( $atts['category_id'] );
42
 
43
  $posts_per_page = intval( $atts['items'] );
44
  $total_column = intval( $atts['columns'] );
45
  $tx_category = $atts['showcat'];
46
  $tx_carousel = $atts['carousel'];
47
 
48
- $return_string = '';
49
-
50
  if( $tx_carousel == 'no' ) {
51
  $return_string .= '<div class="tx-blog tx-post-row tx-masonry">';
52
  } else
@@ -62,10 +62,12 @@ function tx_blog_function($atts, $content = null) {
62
  'orderby' => 'date',
63
  'order' => 'DESC',
64
  'ignore_sticky_posts' => 1,
65
- //'post__in' => 2//$post_in_cat, //use post ids
66
  );
67
  //$args['paging'] = true;
68
  /**/
 
 
69
  query_posts( $args );
70
 
71
  if ( have_posts() ) : while ( have_posts() ) : the_post();
38
  'carousel' => 'no',
39
  ), $atts);
40
 
41
+ $post_in_cat = tx_shortcodes_comma_delim_to_array( $atts['category_id'] );
42
 
43
  $posts_per_page = intval( $atts['items'] );
44
  $total_column = intval( $atts['columns'] );
45
  $tx_category = $atts['showcat'];
46
  $tx_carousel = $atts['carousel'];
47
 
48
+ $return_string = '';
49
+
50
  if( $tx_carousel == 'no' ) {
51
  $return_string .= '<div class="tx-blog tx-post-row tx-masonry">';
52
  } else
62
  'orderby' => 'date',
63
  'order' => 'DESC',
64
  'ignore_sticky_posts' => 1,
65
+ 'category__in' => $post_in_cat, //use post ids
66
  );
67
  //$args['paging'] = true;
68
  /**/
69
+
70
+
71
  query_posts( $args );
72
 
73
  if ( have_posts() ) : while ( have_posts() ) : the_post();
tx-toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
- Version: 1.0.4
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
+ Version: 1.0.5
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later