List category posts - Version 0.35

Version Description

  • Updated Turkish translation, thanks again Hakan Er!
    • Adds feature to order by custom field using the customfield_orderby parameter.
Download this release

Release Info

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

Code changes from version 0.34.1 to 0.35

include/CatList.php CHANGED
@@ -115,6 +115,12 @@ class CatList{
115
  elseif ( !empty($this->params['tags']) ):
116
  $args['tag'] = $this->params['tags'];
117
  endif;
 
 
 
 
 
 
118
  $this->lcp_categories_posts = get_posts($args);
119
  }
120
 
@@ -166,15 +172,6 @@ class CatList{
166
  $this->lcp_category_id = $this->get_category_id_by_name($this->params['name']);
167
  endif;
168
  elseif ( isset($this->params['id']) && $this->params['id'] != '0' ):
169
- $lcp_id = $this->params['id'];
170
-
171
- if (preg_match('/\+/', $lcp_id)):
172
- // Probably there's a "category and not" for cases of 2+3-1
173
- $this->lcp_category_id = explode(",", str_replace("+", ",", str_replace("-", ",-", $lcp_id) ) );
174
- else:
175
- $this->lcp_category_id = $lcp_id;
176
- endif;
177
-
178
  if (preg_match('/\+/', $this->params['id'])):
179
  $this->lcp_category_id = explode("+", $this->params['id']);
180
  else:
@@ -183,7 +180,6 @@ class CatList{
183
  endif;
184
  }
185
 
186
-
187
  public function lcp_get_current_category(){
188
  $category = get_category( get_query_var( 'category' ) );
189
  if(isset($category->errors) && $category->errors["invalid_term"][0] == "Empty Term"):
115
  elseif ( !empty($this->params['tags']) ):
116
  $args['tag'] = $this->params['tags'];
117
  endif;
118
+
119
+ if ( $this->lcp_not_empty('customfield_orderby') ):
120
+ $args['orderby'] = 'meta_value';
121
+ $args['meta_key'] = $this->params['customfield_orderby'];
122
+ endif;
123
+
124
  $this->lcp_categories_posts = get_posts($args);
125
  }
126
 
172
  $this->lcp_category_id = $this->get_category_id_by_name($this->params['name']);
173
  endif;
174
  elseif ( isset($this->params['id']) && $this->params['id'] != '0' ):
 
 
 
 
 
 
 
 
 
175
  if (preg_match('/\+/', $this->params['id'])):
176
  $this->lcp_category_id = explode("+", $this->params['id']);
177
  else:
180
  endif;
181
  }
182
 
 
183
  public function lcp_get_current_category(){
184
  $category = get_category( get_query_var( 'category' ) );
185
  if(isset($category->errors) && $category->errors["invalid_term"][0] == "Empty Term"):
languages/list-category-posts-tr_TR.mo CHANGED
Binary file
languages/list-category-posts-tr_TR.po CHANGED
@@ -4,125 +4,136 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: list-category-posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp\n"
7
- "POT-Creation-Date: 2012-12-19 13:23:13+00:00\n"
 
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2013-01-27 20:15+0200\n"
12
- "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
13
- "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
14
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
- "Language: turkish\n"
16
- "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
 
19
- #: include/ListCategoryPostsWidget.php:5
20
- msgid ""
21
- "List Category Posts allows you to list posts from a category into a post/"
22
- "page using the [catlist] shortcode. This shortcode accepts a category name "
23
- "or id, the order in which you want the posts to display, and the number of "
24
- "posts to display. You can use [catlist] as many times as needed with "
25
- "different arguments. Usage: [catlist argument1=value1 argument2=value2]."
26
- msgstr ""
27
- "List Category Posts, [catlist] kısa kodunu kullanarak bir yazı/sayfa içinde "
28
- "bir kategorideki yazıları listeleyebilmenizi sağlar. Bu kısa kod, bir "
29
- "kategori adı veya id kimliği, yazıları görüntülemek istediğiniz sıra ve "
30
- "gösterilecek yazı sayısını kabul eder. Farklı değişkenler ile gerektiğinde "
31
- "birçok kez [catlist] kullanabilirsiniz. Kullanımı: [catlist değişken1=değer1 "
32
- "değişken2=değer2]."
33
 
34
- #: include/ListCategoryPostsWidget.php:11
35
- msgid "List posts from a specified category"
36
- msgstr "Belirli bir kategorideki yazıları listele"
37
 
38
- #: include/ListCategoryPostsWidget.php:12
39
- msgid "List Category Posts"
40
- msgstr "List Category Posts"
41
 
42
- #: include/lcp_widget_form.php:40
43
  msgid "Title"
44
  msgstr "Başlık"
45
 
46
- #: include/lcp_widget_form.php:47
47
  msgid "Category"
48
  msgstr "Kategori"
49
 
50
- #: include/lcp_widget_form.php:65
51
  msgid "Number of posts"
52
  msgstr "Yazı sayısı"
53
 
54
- #: include/lcp_widget_form.php:72
55
  msgid "Offset"
56
  msgstr "Kaydırma"
57
 
58
- #: include/lcp_widget_form.php:78
59
  msgid "Order by"
60
  msgstr "Sırala"
61
 
62
- #: include/lcp_widget_form.php:81 include/lcp_widget_form.php:123
63
  msgid "Date"
64
  msgstr "Tarih"
65
 
66
- #: include/lcp_widget_form.php:82
67
  msgid "Post title"
68
  msgstr "Yazı başlığı"
69
 
70
- #: include/lcp_widget_form.php:83 include/lcp_widget_form.php:127
71
  msgid "Author"
72
  msgstr "Yazar"
73
 
74
- #: include/lcp_widget_form.php:84
75
  msgid "Random"
76
  msgstr "Rasgele"
77
 
78
- #: include/lcp_widget_form.php:88
79
  msgid "Order"
80
  msgstr "Sıralama"
81
 
82
- #: include/lcp_widget_form.php:91
83
  msgid "Descending"
84
  msgstr "Azalan"
85
 
86
- #: include/lcp_widget_form.php:92
87
  msgid "Ascending"
88
  msgstr "Artan"
89
 
90
- #: include/lcp_widget_form.php:96
91
  msgid "Exclude categories (id's)"
92
  msgstr "Kategorileri (id'ler) hariç tut"
93
 
94
- #: include/lcp_widget_form.php:102
95
  msgid "Exclude posts (id's)"
96
  msgstr "Yazıları (id'ler) hariç tut"
97
 
98
- #: include/lcp_widget_form.php:109
99
  msgid "Show"
100
  msgstr "Göster"
101
 
102
- #: include/lcp_widget_form.php:112
103
  msgid "Thumbnail - size"
104
  msgstr "Küçük resim - boyut"
105
 
106
- #: include/lcp_widget_form.php:131
107
- msgid "Link to category"
108
- msgstr "Kategoriye bağlantı"
 
 
 
 
109
 
110
- #: include/lcp_widget_form.php:135
111
  msgid "Excerpt"
112
  msgstr "Alıntı"
113
 
114
- #: include/lcp_widget_form.php:138
 
 
 
 
115
  msgid "More link"
116
  msgstr "Devamı bağlantısı"
117
 
118
- #: list_cat_posts.php:102
119
- msgid "How to use"
120
- msgstr "Nasıl kullanılır"
121
 
122
- #: list_cat_posts.php:103
123
- msgid "Donate"
124
- msgstr "Bağış yap"
125
 
126
- #: list_cat_posts.php:104
127
- msgid "Fork on Github"
128
- msgstr "Github üzerinde incele"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: list-category-posts\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp\n"
7
+ "POT-Creation-Date: 2013-10-23 08:27+0200\n"
8
+ "PO-Revision-Date: 2013-10-23 08:34+0200\n"
9
+ "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
10
+ "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
11
+ "Language: turkish\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Generator: Poedit 1.5.7\n"
 
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
 
19
+ #: list_cat_posts.php:117
20
+ msgid "How to use"
21
+ msgstr "Nasıl kullanılır"
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ #: list_cat_posts.php:118
24
+ msgid "Donate"
25
+ msgstr "Bağış yap"
26
 
27
+ #: list_cat_posts.php:119
28
+ msgid "Fork on Github"
29
+ msgstr "Github üzerinde incele"
30
 
31
+ #: include/lcp_widget_form.php:47
32
  msgid "Title"
33
  msgstr "Başlık"
34
 
35
+ #: include/lcp_widget_form.php:57
36
  msgid "Category"
37
  msgstr "Kategori"
38
 
39
+ #: include/lcp_widget_form.php:86
40
  msgid "Number of posts"
41
  msgstr "Yazı sayısı"
42
 
43
+ #: include/lcp_widget_form.php:96
44
  msgid "Offset"
45
  msgstr "Kaydırma"
46
 
47
+ #: include/lcp_widget_form.php:105
48
  msgid "Order by"
49
  msgstr "Sırala"
50
 
51
+ #: include/lcp_widget_form.php:109 include/lcp_widget_form.php:180
52
  msgid "Date"
53
  msgstr "Tarih"
54
 
55
+ #: include/lcp_widget_form.php:110
56
  msgid "Post title"
57
  msgstr "Yazı başlığı"
58
 
59
+ #: include/lcp_widget_form.php:111 include/lcp_widget_form.php:186
60
  msgid "Author"
61
  msgstr "Yazar"
62
 
63
+ #: include/lcp_widget_form.php:112
64
  msgid "Random"
65
  msgstr "Rasgele"
66
 
67
+ #: include/lcp_widget_form.php:129
68
  msgid "Order"
69
  msgstr "Sıralama"
70
 
71
+ #: include/lcp_widget_form.php:135
72
  msgid "Descending"
73
  msgstr "Azalan"
74
 
75
+ #: include/lcp_widget_form.php:138
76
  msgid "Ascending"
77
  msgstr "Artan"
78
 
79
+ #: include/lcp_widget_form.php:145
80
  msgid "Exclude categories (id's)"
81
  msgstr "Kategorileri (id'ler) hariç tut"
82
 
83
+ #: include/lcp_widget_form.php:155
84
  msgid "Exclude posts (id's)"
85
  msgstr "Yazıları (id'ler) hariç tut"
86
 
87
+ #: include/lcp_widget_form.php:164
88
  msgid "Show"
89
  msgstr "Göster"
90
 
91
+ #: include/lcp_widget_form.php:166
92
  msgid "Thumbnail - size"
93
  msgstr "Küçük resim - boyut"
94
 
95
+ #: include/lcp_widget_form.php:192
96
+ msgid ""
97
+ "Link to category (use 'catlink' on the title field if you want the title of "
98
+ "this widget to be a link to the category)"
99
+ msgstr ""
100
+ "Kategoriye bağlantı (eğer bu bileşene ait başlığın kategoriye giden bir "
101
+ "bağlantı olmasını istiyorsanız, başlık alanında 'catlink' kullanın)"
102
 
103
+ #: include/lcp_widget_form.php:198
104
  msgid "Excerpt"
105
  msgstr "Alıntı"
106
 
107
+ #: include/lcp_widget_form.php:202
108
+ msgid "Excerpt size"
109
+ msgstr "Alıntı boyutu"
110
+
111
+ #: include/lcp_widget_form.php:211
112
  msgid "More link"
113
  msgstr "Devamı bağlantısı"
114
 
115
+ #: include/ListCategoryPostsWidget.php:11
116
+ msgid "List posts from a specified category"
117
+ msgstr "Belirli bir kategorideki yazıları listele"
118
 
119
+ #: include/ListCategoryPostsWidget.php:12
120
+ msgid "List Category Posts"
121
+ msgstr "List Category Posts"
122
 
123
+ #~ msgid ""
124
+ #~ "List Category Posts allows you to list posts from a category into a post/"
125
+ #~ "page using the [catlist] shortcode. This shortcode accepts a category "
126
+ #~ "name or id, the order in which you want the posts to display, and the "
127
+ #~ "number of posts to display. You can use [catlist] as many times as needed "
128
+ #~ "with different arguments. Usage: [catlist argument1=value1 "
129
+ #~ "argument2=value2]."
130
+ #~ msgstr ""
131
+ #~ "List Category Posts, [catlist] kısa kodunu kullanarak bir yazı/sayfa "
132
+ #~ "içinde bir kategorideki yazıları listeleyebilmenizi sağlar. Bu kısa kod, "
133
+ #~ "bir kategori adı veya id kimliği, yazıları görüntülemek istediğiniz sıra "
134
+ #~ "ve gösterilecek yazı sayısını kabul eder. Farklı değişkenler ile "
135
+ #~ "gerektiğinde birçok kez [catlist] kullanabilirsiniz. Kullanımı: [catlist "
136
+ #~ "değişken1=değer1 değişken2=değer2]."
137
+
138
+ #~ msgid "Link to category"
139
+ #~ msgstr "Kategoriye bağlantı"
languages/list-category-posts.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
1
+ # Copyright (C) 2012
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
list_cat_posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.34.1
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
@@ -87,6 +87,7 @@ class ListCategoryPosts{
87
  'customfield_name' => '',
88
  'customfield_value' =>'',
89
  'customfield_display' =>'',
 
90
  'taxonomy' => '',
91
  'categorypage' => '',
92
  'category_count' => '',
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
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.35
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
87
  'customfield_name' => '',
88
  'customfield_value' =>'',
89
  'customfield_display' =>'',
90
+ 'customfield_orderby' =>'',
91
  'taxonomy' => '',
92
  'categorypage' => '',
93
  'category_count' => '',
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: 3.3
6
  Tested up to: 3.7.1
7
- Stable tag: 0.34.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,13 +97,15 @@ When using List Category Posts whithout a category id, name or slug, it will pos
97
  * **rand** - Randomly sort results.
98
  * **status** - Sort by status.
99
  * **title** - Sort by title.
100
- * **type** - Sort by type. Ex: [catlist name=mycategory orderby=date]
 
 
101
 
102
  * **order** - How to sort **orderby**. Valid values are:
103
  * **ASC** - Ascending (lowest to highest).
104
- * **DESC** - Descending (highest to lowest). Ex: [catlist name=mycategory orderby=title order=asc]
105
 
106
- * **numberposts** - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Default: 5. Ex: [catlist name=mycategory numberposts=10]
107
 
108
  * **monthnum** and **year** - List posts from a certain year or month. You can use these together or independently. Example: `[catlist year=2015]` will list posts from the year 2015. `[catlist monthnum=8]` will list posts published in August of every year. `[catlist year=2012 month=12]` will list posts from December 2012.
109
 
@@ -121,23 +123,23 @@ When using List Category Posts whithout a category id, name or slug, it will pos
121
 
122
  * **excerpt_strip** - Set it to `yes` to strip the excerpt's HTML tags.
123
 
124
- * **excludeposts** - IDs of posts to exclude from the list. Use 'this' to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]
125
 
126
  * **offset** - You can displace or pass over one or more initial posts which would normally be collected by your query through the use of the offset parameter.
127
 
128
- * **content** - Show the full content of the post. Default is 'no'. Ex: [catlist content=yes]
129
 
130
- * **catlink** - Show the title of the category with a link to the category. Use the **catlink_string** option to change the link text. Default is 'no'. Ex: [catlist catlink=yes]. The way it's programmed, it should only display the title for the first category you chose, and include the posts from all of the categories. I thought of this parameter mostly for using several shortcodes on one page or post, so that each group of posts would have the title of that group's category. If you need to display several titles with posts, you should use one [catlist] shortcode for each category you want to display.
131
 
132
  * **category_count** - Shows the posts count in that category, only works when using the **catlink** option: `[catlist name=nintendo catlink=yes category_count=yes]`
133
 
134
- * **comments** - Show comments count for each post. Default is 'no'. Ex: [catlist comments=yes].
135
 
136
- * **thumbnail** - Show post thumbnail (http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/). Default is 'no'. Ex: [catlist thumbnail=yes].
137
 
138
- * **thumbnail_size** - Either a string keyword (thumbnail, medium, large or full) or 2 values representing width and height in pixels. Ex: [catlist thumbnail_size=32,32] or [catlist thumbnail_size=thumbnail]
139
 
140
- * **thumbnail_class** - Set a CSS class to the thumbnail and style it.
141
 
142
  * **post_type** - The type of post to show. Available options are: post - Default, page, attachment, any - all post types.
143
 
@@ -163,9 +165,9 @@ When using List Category Posts whithout a category id, name or slug, it will pos
163
 
164
  * **template** - File name of template from templates directory without extension. Example: For 'template.php' value is only 'template'. Default is 'default', which displays an unordered list (ul html tag) with a CSS class. This class can be passed as a parameter or by default it's: 'lcp_catlist'. You can also use the default 'div' value. This will output a div with the 'lcp_catlist' CSS class (or one you pass as parameter with the class argument). The inner items (posts) will be displayed between p tags.
165
 
166
- * **morelink** - Include a "more" link to access the category archive for the category. The link is inserted after listing the posts. It receives a string of characters as a parameter which will be used as the text of the link. Example: [catlist id=38 morelink="Read more"]
167
 
168
- * **posts_morelink** - Include a "read more" link after each post. It receives a string of characters as a parameter which will be used as the text of the link. Example: [catlist id=38 posts_morelink="Read more about this post"]
169
 
170
  == HTML & CSS Customization ==
171
 
@@ -198,7 +200,7 @@ Will produce the following:
198
  Templates for the List Category Plugin are searched for in your WordPress theme's folder. You should create a folder named list-category-posts under 'wp-content/themes/your-theme-folder'. Template files are .php files.
199
 
200
  You can use the included template as an example to start. It's in the plugin's template folder under the name default.php. To use a template, use this code:
201
- [catlist id=1 template=templatename]
202
  If the template file were templatename.php.
203
 
204
  You can have as many different templates as you want, and use them in different pages and posts. The template code is pretty well documented, so if you're a bit familiar with HTML and PHP, you'll have no problems creating your own template. I'm planning on reworking the template system in order to have a really user friendly way to create templates.
@@ -271,12 +273,14 @@ Template system has changed. Custom templates should be stored in WordPress them
271
 
272
  == Changelog ==
273
 
274
- = 0.34.1 =
 
 
275
 
 
276
  * Bugfix (removed var_dump)
277
 
278
  = 0.34 =
279
-
280
  * Now accepts either class or tag or both for styling elements (such as date, author, etc. to display). When just using a tag, it will sorround the element with that tag. When using just a class, it will wrap the element between span tags and the given CSS class. Check [Other notes](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) under **HTML & CSS Customization** for more info.
281
  * Fixed bug on `post_status`, it used to show all published posts and if user was logged in, all private ones too. Now you can specify 'private' to just display private posts, and draft, publish, draft, etc (See **post_status** param on the [instructions](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) for more info).
282
 
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.7.1
7
+ Stable tag: 0.35
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
  * **rand** - Randomly sort results.
98
  * **status** - Sort by status.
99
  * **title** - Sort by title.
100
+ * **type** - Sort by type. Ex: `[catlist name=mycategory orderby=date]`
101
+
102
+ * **customfield_orderby** - You can order the posts by a custom field. For example: `[catlist numberposts=-1 customfield_orderby=Mood order=desc]` will list all the posts with a "Mood" custom field. Remember the default order is descending, more on order:
103
 
104
  * **order** - How to sort **orderby**. Valid values are:
105
  * **ASC** - Ascending (lowest to highest).
106
+ * **DESC** - Descending (highest to lowest). Ex: `[catlist name=mycategory orderby=title order=asc]`
107
 
108
+ * **numberposts** - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Default: 5. Ex: `[catlist name=mycategory numberposts=10]`
109
 
110
  * **monthnum** and **year** - List posts from a certain year or month. You can use these together or independently. Example: `[catlist year=2015]` will list posts from the year 2015. `[catlist monthnum=8]` will list posts published in August of every year. `[catlist year=2012 month=12]` will list posts from December 2012.
111
 
123
 
124
  * **excerpt_strip** - Set it to `yes` to strip the excerpt's HTML tags.
125
 
126
+ * **excludeposts** - IDs of posts to exclude from the list. Use 'this' to exclude the current post. Ex: `[catlist excludeposts=this,12,52,37]`
127
 
128
  * **offset** - You can displace or pass over one or more initial posts which would normally be collected by your query through the use of the offset parameter.
129
 
130
+ * **content** - Show the full content of the post. Default is 'no'. Ex: `[catlist content=yes]`
131
 
132
+ * **catlink** - Show the title of the category with a link to the category. Use the **catlink_string** option to change the link text. Default is 'no'. Ex: `[catlist catlink=yes]`. The way it's programmed, it should only display the title for the first category you chose, and include the posts from all of the categories. I thought of this parameter mostly for using several shortcodes on one page or post, so that each group of posts would have the title of that group's category. If you need to display several titles with posts, you should use one [catlist] shortcode for each category you want to display.
133
 
134
  * **category_count** - Shows the posts count in that category, only works when using the **catlink** option: `[catlist name=nintendo catlink=yes category_count=yes]`
135
 
136
+ * **comments** - Show comments count for each post. Default is 'no'. Ex: `[catlist comments=yes]`.
137
 
138
+ * **thumbnail** - Show post thumbnail (http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/). Default is 'no'. Ex: `[catlist thumbnail=yes]`.
139
 
140
+ * **thumbnail_size** - Either a string keyword (thumbnail, medium, large or full) or 2 values representing width and height in pixels. Ex: `[catlist thumbnail_size=32,32]` or `[catlist thumbnail_size=thumbnail]`
141
 
142
+ * **thumbnail_class** - Set a CSS class for the thumbnail.
143
 
144
  * **post_type** - The type of post to show. Available options are: post - Default, page, attachment, any - all post types.
145
 
165
 
166
  * **template** - File name of template from templates directory without extension. Example: For 'template.php' value is only 'template'. Default is 'default', which displays an unordered list (ul html tag) with a CSS class. This class can be passed as a parameter or by default it's: 'lcp_catlist'. You can also use the default 'div' value. This will output a div with the 'lcp_catlist' CSS class (or one you pass as parameter with the class argument). The inner items (posts) will be displayed between p tags.
167
 
168
+ * **morelink** - Include a "more" link to access the category archive for the category. The link is inserted after listing the posts. It receives a string of characters as a parameter which will be used as the text of the link. Example: `[catlist id=38 morelink="Read more"]`
169
 
170
+ * **posts_morelink** - Include a "read more" link after each post. It receives a string of characters as a parameter which will be used as the text of the link. Example: `[catlist id=38 posts_morelink="Read more about this post"]`
171
 
172
  == HTML & CSS Customization ==
173
 
200
  Templates for the List Category Plugin are searched for in your WordPress theme's folder. You should create a folder named list-category-posts under 'wp-content/themes/your-theme-folder'. Template files are .php files.
201
 
202
  You can use the included template as an example to start. It's in the plugin's template folder under the name default.php. To use a template, use this code:
203
+ `[catlist id=1 template=templatename]`
204
  If the template file were templatename.php.
205
 
206
  You can have as many different templates as you want, and use them in different pages and posts. The template code is pretty well documented, so if you're a bit familiar with HTML and PHP, you'll have no problems creating your own template. I'm planning on reworking the template system in order to have a really user friendly way to create templates.
273
 
274
  == Changelog ==
275
 
276
+ = 0.35 =
277
+ * Updated Turkish translation, thanks again [Hakan Er](http://hakanertr.wordpress.com/)!
278
+ * Adds feature to order by custom field using the `customfield_orderby` parameter.
279
 
280
+ = 0.34.1 =
281
  * Bugfix (removed var_dump)
282
 
283
  = 0.34 =
 
284
  * Now accepts either class or tag or both for styling elements (such as date, author, etc. to display). When just using a tag, it will sorround the element with that tag. When using just a class, it will wrap the element between span tags and the given CSS class. Check [Other notes](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) under **HTML & CSS Customization** for more info.
285
  * Fixed bug on `post_status`, it used to show all published posts and if user was logged in, all private ones too. Now you can specify 'private' to just display private posts, and draft, publish, draft, etc (See **post_status** param on the [instructions](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) for more info).
286