List category posts - Version 0.19.3

Version Description

  • Another taxonomy fix, thanks frisco! http://wordpress.org/support/topic/plugin-list-category-posts-problem-with-custom-taxonomies
Download this release

Release Info

Developer fernandobt
Plugin Icon 128x128 List category posts
Version 0.19.3
Comparing to
See all releases

Code changes from version 0.19.2 to 0.19.3

include/CatList.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
  * The CatList object gets the info for the CatListDisplayer to show.
4
- * Each shortcode appearence is an instance of this class.
5
- * @author fernando@picandocodigo.nets
6
  */
7
 
8
  class CatList{
@@ -58,7 +58,7 @@ class CatList{
58
  // Added custom taxonomy support
59
  if ($this->params['taxonomy'] != "" && $this->params['tags'] != "") {
60
  $args['tax_query'] = array(array(
61
- 'taxonomy' => 'topic-tag',
62
  'field' => 'slug',
63
  'terms' => explode(",",$this->params['tags'])
64
  ));
1
  <?php
2
  /**
3
  * The CatList object gets the info for the CatListDisplayer to show.
4
+ * Each time you use the shortcode, you get an instance of this class.
5
+ * @author fernando@picandocodigo.net
6
  */
7
 
8
  class CatList{
58
  // Added custom taxonomy support
59
  if ($this->params['taxonomy'] != "" && $this->params['tags'] != "") {
60
  $args['tax_query'] = array(array(
61
+ 'taxonomy' => $this->params['taxonomy'],
62
  'field' => 'slug',
63
  'terms' => explode(",",$this->params['tags'])
64
  ));
include/CatListDisplayer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * This is an auxiliary class to help display the info on your CatList.php instance.
4
- * @author fernando@picandocodigo.nets
5
  */
6
  require_once 'CatList.php';
7
 
1
  <?php
2
  /**
3
  * This is an auxiliary class to help display the info on your CatList.php instance.
4
+ * @author fernando@picandocodigo.net
5
  */
6
  require_once 'CatList.php';
7
 
include/ListCategoryPostsWidget.php CHANGED
@@ -1,21 +1,8 @@
1
  <?php
2
- /* Copyright 2008-2010 Fernando Briano (email : fernando@picandocodigo.net)
3
-
4
- This program is free software; you can redistribute it and/or modify
5
- it under the terms of the GNU General Public License as published by
6
- the Free Software Foundation; either version 3 of the License, or
7
- any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU General Public License for more details.
13
-
14
- You should have received a copy of the GNU General Public License
15
- along with this program; if not, write to the Free Software
16
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
- */
18
- //Sidebar Widget file
19
  require_once 'CatListDisplayer.php';
20
 
21
  class ListCategoryPostsWidget extends WP_Widget{
@@ -59,8 +46,6 @@ class ListCategoryPostsWidget extends WP_Widget{
59
  'exclude' => $exclude,
60
  'excludeposts' => $excludeposts,
61
  'offset' => $offset,
62
- //'tags' => '',
63
- //'content' => 'no',
64
  'catlink' => $showcatlink,
65
  'thumbnail' => $thumbnail,
66
  'thumbnail_size' => $thumbnail_size
@@ -100,6 +85,6 @@ class ListCategoryPostsWidget extends WP_Widget{
100
  include('lcp_widget_form.php');
101
  }
102
  }
103
- add_action('widgets_init', create_function('', 'return register_widget("listCategoryPostsWidget");'));
104
 
 
105
  ?>
1
  <?php
2
+ /**
3
+ * List Category Posts sidebar widget.
4
+ * @author fernando@picandocodigo.net
5
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  require_once 'CatListDisplayer.php';
7
 
8
  class ListCategoryPostsWidget extends WP_Widget{
46
  'exclude' => $exclude,
47
  'excludeposts' => $excludeposts,
48
  'offset' => $offset,
 
 
49
  'catlink' => $showcatlink,
50
  'thumbnail' => $thumbnail,
51
  'thumbnail_size' => $thumbnail_size
85
  include('lcp_widget_form.php');
86
  }
87
  }
 
88
 
89
+ add_action('widgets_init', create_function('', 'return register_widget("listCategoryPostsWidget");'));
90
  ?>
include/lcp_widget_form.php CHANGED
@@ -1,20 +1,8 @@
1
  <?php
2
- /* Copyright 2008-2010 Fernando Briano (email : fernando@picandocodigo.net)
3
-
4
- This program is free software; you can redistribute it and/or modify
5
- it under the terms of the GNU General Public License as published by
6
- the Free Software Foundation; either version 3 of the License, or
7
- any later version.
8
-
9
- This program is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU General Public License for more details.
13
-
14
- You should have received a copy of the GNU General Public License
15
- along with this program; if not, write to the Free Software
16
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
- */
18
 
19
  $instance = wp_parse_args( (array) $instance, array(
20
  'title' => '',
1
  <?php
2
+ /**
3
+ * List Category Posts sidebar widget form for Appearance > Widgets.
4
+ * @author fernando@picandocodigo.net
5
+ */
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  $instance = wp_parse_args( (array) $instance, array(
8
  'title' => '',
list_cat_posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
5
  Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.19.2
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
  */
@@ -75,6 +75,7 @@ add_shortcode( 'catlist', array('ListCategoryPosts', 'catlist_func') );
75
 
76
  /**
77
  * TO-DO:
 
78
  * From WordPress Answers:
79
  Add Older Posts at bottom of List Category Post page
80
  http://wordpress.stackexchange.com/questions/26398/add-older-posts-at-bottom-of-list-category-post-page
@@ -87,4 +88,4 @@ Getting the “more” tag to work with plugin-list-category-post
87
  - Pagination
88
  - Simpler template system
89
  - Exclude child categories
90
- */
3
  Plugin Name: List category posts
4
  Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
5
  Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.19.3
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
  */
75
 
76
  /**
77
  * TO-DO:
78
+ * http://wordpress.org/support/topic/plugin-list-category-posts-titlelink
79
  * From WordPress Answers:
80
  Add Older Posts at bottom of List Category Post page
81
  http://wordpress.stackexchange.com/questions/26398/add-older-posts-at-bottom-of-list-category-post-page
88
  - Pagination
89
  - Simpler template system
90
  - Exclude child categories
91
+ */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts
4
  Tags: list, categories, posts, cms
5
  Requires at least: 2.8
6
  Tested up to: 3.2.1
7
- Stable tag: 0.19.2
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
@@ -145,6 +145,9 @@ Template system has changed. Custom templates should be stored in WordPress them
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 0.19.2 =
149
  * Small fix, missing parameter for taxonomy.
150
 
4
  Tags: list, categories, posts, cms
5
  Requires at least: 2.8
6
  Tested up to: 3.2.1
7
+ Stable tag: 0.19.3
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
145
 
146
  == Changelog ==
147
 
148
+ = 0.19.3 =
149
+ * Another taxonomy fix, thanks frisco! http://wordpress.org/support/topic/plugin-list-category-posts-problem-with-custom-taxonomies
150
+
151
  = 0.19.2 =
152
  * Small fix, missing parameter for taxonomy.
153