Version Description
- Add custom image sizes to the list of selectable image sizes in the widget. Thanks nuss for the Pull Request!
- New Attribute 'no_post_titles'. Thanks thomasWeise for the Pull Request!
- Finnish localization. Thanks Newman101 for the Pull Request!
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.57 |
Comparing to | |
See all releases |
Code changes from version 0.56 to 0.57
- include/lcp-catlistdisplayer.php +4 -1
- include/lcp-widget-form.php +6 -4
- include/lcp-widget.php +6 -2
- languages/list-category-posts-fi_FI.mo +0 -0
- languages/list-category-posts-fi_FI.po +238 -0
- list_cat_posts.php +4 -3
- readme.txt +9 -2
include/lcp-catlistdisplayer.php
CHANGED
@@ -225,7 +225,10 @@ class CatListDisplayer {
|
|
225 |
|
226 |
$lcp_display_output = '<'. $tag . $class . '>';
|
227 |
|
228 |
-
|
|
|
|
|
|
|
229 |
|
230 |
// Comments count
|
231 |
if (!empty($this->params['comments_tag'])):
|
225 |
|
226 |
$lcp_display_output = '<'. $tag . $class . '>';
|
227 |
|
228 |
+
|
229 |
+
if ( $this->params['no_post_titles'] != 'yes' ):
|
230 |
+
$lcp_display_output .= $this->get_post_title($single);
|
231 |
+
endif;
|
232 |
|
233 |
// Comments count
|
234 |
if (!empty($this->params['comments_tag'])):
|
include/lcp-widget-form.php
CHANGED
@@ -165,15 +165,17 @@
|
|
165 |
</p>
|
166 |
|
167 |
<p>
|
|
|
168 |
<label><?php _e("Show", 'list-category-posts')?>: </label><br/>
|
169 |
<input type="checkbox" <?php checked( (bool) $instance['thumbnail'], true ); ?>
|
170 |
name="<?php echo $this->get_field_name( 'thumbnail'); ?>" /> <?php _e("Thumbnail - size", 'list-category-posts')?>
|
171 |
<select id="<?php echo $this->get_field_id('thumbnail_size'); ?>"
|
172 |
name="<?php echo $this->get_field_name( 'thumbnail_size' ); ?>" type="text">
|
173 |
-
|
174 |
-
<option value='
|
175 |
-
|
176 |
-
|
|
|
177 |
</select>
|
178 |
</p>
|
179 |
|
165 |
</p>
|
166 |
|
167 |
<p>
|
168 |
+
<?php $image_sizes = get_intermediate_image_sizes() ?>
|
169 |
<label><?php _e("Show", 'list-category-posts')?>: </label><br/>
|
170 |
<input type="checkbox" <?php checked( (bool) $instance['thumbnail'], true ); ?>
|
171 |
name="<?php echo $this->get_field_name( 'thumbnail'); ?>" /> <?php _e("Thumbnail - size", 'list-category-posts')?>
|
172 |
<select id="<?php echo $this->get_field_id('thumbnail_size'); ?>"
|
173 |
name="<?php echo $this->get_field_name( 'thumbnail_size' ); ?>" type="text">
|
174 |
+
<?php foreach($image_sizes as $image_size) { ?>
|
175 |
+
<option value='<?php echo $image_size ?>' <?php
|
176 |
+
if($thumbnail_size == $image_size) echo 'selected';
|
177 |
+
?>><?php echo $image_size ?></option>
|
178 |
+
<?php } ?>
|
179 |
</select>
|
180 |
</p>
|
181 |
|
include/lcp-widget.php
CHANGED
@@ -13,13 +13,18 @@ class ListCategoryPostsWidget extends WP_Widget{
|
|
13 |
}
|
14 |
|
15 |
function widget($args, $instance) {
|
|
|
16 |
extract( $args );
|
|
|
17 |
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
|
18 |
$limit = (is_numeric($instance['limit'])) ? $instance['limit'] : 5;
|
19 |
$orderby = ($instance['orderby']) ? $instance['orderby'] : 'date';
|
20 |
$order = ($instance['order']) ? $instance['order'] : 'desc';
|
21 |
$exclude = ($instance['exclude'] != '') ? $instance['exclude'] : 0;
|
22 |
-
|
|
|
|
|
|
|
23 |
$offset = (is_numeric($instance['offset'])) ? $instance['offset'] : 0;
|
24 |
$category_id = $instance['categoryid'];
|
25 |
$dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
|
@@ -65,7 +70,6 @@ class ListCategoryPostsWidget extends WP_Widget{
|
|
65 |
$title = '<a href="' . get_category_link($lcp_category->cat_ID) . '">' .
|
66 |
$lcp_category->name . '</a>';
|
67 |
} elseif ($title == 'catname') {
|
68 |
-
global $post;
|
69 |
// If the user has setup 'catname' as the title, replace it with
|
70 |
// the category link:
|
71 |
$lcp_category = get_the_category($post->ID);
|
13 |
}
|
14 |
|
15 |
function widget($args, $instance) {
|
16 |
+
global $post;
|
17 |
extract( $args );
|
18 |
+
|
19 |
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
|
20 |
$limit = (is_numeric($instance['limit'])) ? $instance['limit'] : 5;
|
21 |
$orderby = ($instance['orderby']) ? $instance['orderby'] : 'date';
|
22 |
$order = ($instance['order']) ? $instance['order'] : 'desc';
|
23 |
$exclude = ($instance['exclude'] != '') ? $instance['exclude'] : 0;
|
24 |
+
if($instance['excludeposts'] == 'current')
|
25 |
+
$excludeposts = $post->ID;
|
26 |
+
if(!isset($excludeposts))
|
27 |
+
$excludeposts = ($instance['excludeposts'] != '') ? $instance['excludeposts'] : 0;
|
28 |
$offset = (is_numeric($instance['offset'])) ? $instance['offset'] : 0;
|
29 |
$category_id = $instance['categoryid'];
|
30 |
$dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
|
70 |
$title = '<a href="' . get_category_link($lcp_category->cat_ID) . '">' .
|
71 |
$lcp_category->name . '</a>';
|
72 |
} elseif ($title == 'catname') {
|
|
|
73 |
// If the user has setup 'catname' as the title, replace it with
|
74 |
// the category link:
|
75 |
$lcp_category = get_the_category($post->ID);
|
languages/list-category-posts-fi_FI.mo
ADDED
Binary file
|
languages/list-category-posts-fi_FI.po
ADDED
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: List Category Posts\n"
|
4 |
+
"POT-Creation-Date: 2014-09-03 22:58-0300\n"
|
5 |
+
"PO-Revision-Date: 2015-03-02 23:13+0100\n"
|
6 |
+
"Last-Translator: Juha Remes <jremes@outlook.com>\n"
|
7 |
+
"Language-Team: <fernando@picandocodigo.net>\n"
|
8 |
+
"Language: English\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: __(;_e;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: ../include\n"
|
17 |
+
"X-Poedit-SearchPath-1: ../.\n"
|
18 |
+
"X-Poedit-SearchPath-2: ../templates\n"
|
19 |
+
"X-Poedit-SearchPath-3: ..\n"
|
20 |
+
|
21 |
+
#: ../include/lcp-widget-form.php:51 .././include/lcp-widget-form.php:51
|
22 |
+
msgid "Title"
|
23 |
+
msgstr "Title"
|
24 |
+
|
25 |
+
#: ../include/lcp-widget-form.php:61 .././include/lcp-widget-form.php:61
|
26 |
+
msgid "Category"
|
27 |
+
msgstr "Kategoria"
|
28 |
+
|
29 |
+
#: ../include/lcp-widget-form.php:90 .././include/lcp-widget-form.php:90
|
30 |
+
msgid "Number of posts"
|
31 |
+
msgstr "Viestien lukumäärä"
|
32 |
+
|
33 |
+
#: ../include/lcp-widget-form.php:100 .././include/lcp-widget-form.php:100
|
34 |
+
msgid "Offset"
|
35 |
+
msgstr "Vastine"
|
36 |
+
|
37 |
+
#: ../include/lcp-widget-form.php:109 .././include/lcp-widget-form.php:109
|
38 |
+
msgid "Order by"
|
39 |
+
msgstr "Järjestä"
|
40 |
+
|
41 |
+
#: ../include/lcp-widget-form.php:113 ../include/lcp-widget-form.php:184
|
42 |
+
#: .././include/lcp-widget-form.php:113 .././include/lcp-widget-form.php:184
|
43 |
+
msgid "Date"
|
44 |
+
msgstr "Päivämäärä"
|
45 |
+
|
46 |
+
#: ../include/lcp-widget-form.php:114 .././include/lcp-widget-form.php:114
|
47 |
+
msgid "Post title"
|
48 |
+
msgstr "Viestin otsikko"
|
49 |
+
|
50 |
+
#: ../include/lcp-widget-form.php:115 ../include/lcp-widget-form.php:196
|
51 |
+
#: .././include/lcp-widget-form.php:115 .././include/lcp-widget-form.php:196
|
52 |
+
msgid "Author"
|
53 |
+
msgstr "Kirjoittaja"
|
54 |
+
|
55 |
+
#: ../include/lcp-widget-form.php:116 .././include/lcp-widget-form.php:116
|
56 |
+
msgid "Random"
|
57 |
+
msgstr "Satunnainen"
|
58 |
+
|
59 |
+
#: ../include/lcp-widget-form.php:133 .././include/lcp-widget-form.php:133
|
60 |
+
msgid "Order"
|
61 |
+
msgstr "Järjestys"
|
62 |
+
|
63 |
+
#: ../include/lcp-widget-form.php:139 .././include/lcp-widget-form.php:139
|
64 |
+
msgid "Descending"
|
65 |
+
msgstr "Aleneva"
|
66 |
+
|
67 |
+
#: ../include/lcp-widget-form.php:142 .././include/lcp-widget-form.php:142
|
68 |
+
msgid "Ascending"
|
69 |
+
msgstr "Nouseva"
|
70 |
+
|
71 |
+
#: ../include/lcp-widget-form.php:149 .././include/lcp-widget-form.php:149
|
72 |
+
msgid "Exclude categories (id's)"
|
73 |
+
msgstr "Poissulje kategorioita"
|
74 |
+
|
75 |
+
#: ../include/lcp-widget-form.php:159 .././include/lcp-widget-form.php:159
|
76 |
+
msgid "Exclude posts (id's)"
|
77 |
+
msgstr "Poissulje viestejä"
|
78 |
+
|
79 |
+
#: ../include/lcp-widget-form.php:168 .././include/lcp-widget-form.php:168
|
80 |
+
msgid "Show"
|
81 |
+
msgstr "Näytä"
|
82 |
+
|
83 |
+
#: ../include/lcp-widget-form.php:170 .././include/lcp-widget-form.php:170
|
84 |
+
msgid "Thumbnail - size"
|
85 |
+
msgstr "Sormenpääkoko"
|
86 |
+
|
87 |
+
#: ../include/lcp-widget-form.php:190 .././include/lcp-widget-form.php:190
|
88 |
+
msgid "Modified Date"
|
89 |
+
msgstr "Muokkaamispäivämäärä"
|
90 |
+
|
91 |
+
#: ../include/lcp-widget-form.php:202 .././include/lcp-widget-form.php:202
|
92 |
+
msgid ""
|
93 |
+
"Link to category (use 'catlink' on the title field if you want the title of "
|
94 |
+
"this widget to be a link to the category)"
|
95 |
+
msgstr ""
|
96 |
+
"Linkitä kategoriaan (käytä 'catlink' - tunnistetta otsikkokentässä mikäli "
|
97 |
+
"haluat linkittää otsikon kategoriaan)"
|
98 |
+
|
99 |
+
#: ../include/lcp-widget-form.php:208 .././include/lcp-widget-form.php:208
|
100 |
+
msgid "Excerpt"
|
101 |
+
msgstr "Poiminto"
|
102 |
+
|
103 |
+
#: ../include/lcp-widget-form.php:212 .././include/lcp-widget-form.php:212
|
104 |
+
msgid "Excerpt size"
|
105 |
+
msgstr "Poiminnon koko"
|
106 |
+
|
107 |
+
#: ../include/lcp-widget-form.php:221 .././include/lcp-widget-form.php:221
|
108 |
+
msgid "More link"
|
109 |
+
msgstr "Lisälinkki"
|
110 |
+
|
111 |
+
#: ../include/lcp-widget-form.php:231 .././include/lcp-widget-form.php:231
|
112 |
+
msgid "Template"
|
113 |
+
msgstr "Malli"
|
114 |
+
|
115 |
+
#: ../include/lcp-widget.php:11 .././include/lcp-widget.php:11
|
116 |
+
msgid "List posts from a specified category"
|
117 |
+
msgstr "Listaa viestit täsmennetystä kategoriasta"
|
118 |
+
|
119 |
+
#: ../include/lcp-widget.php:12 .././include/lcp-widget.php:12
|
120 |
+
msgid "List Category Posts"
|
121 |
+
msgstr "Listaa kategorian viestit"
|
122 |
+
|
123 |
+
#: ../include/lcp-catlist.php:274 .././include/lcp-catlist.php:274
|
124 |
+
msgid "Empty Term"
|
125 |
+
msgstr "Tyhjä termi"
|
126 |
+
|
127 |
+
#: ../include/lcp-catlist.php:494 .././include/lcp-catlist.php:494
|
128 |
+
msgid "Continue reading →"
|
129 |
+
msgstr "Jatka lukemista →"
|
130 |
+
|
131 |
+
#: ../include/lcp-options.php:19 .././include/lcp-options.php:19
|
132 |
+
msgid "You do not have sufficient permissions to access this page."
|
133 |
+
msgstr "Sinulla ei ole tarvittavia pääsyoikeuksia tälle sivulle."
|
134 |
+
|
135 |
+
#: ../include/lcp-options.php:36 .././include/lcp-options.php:36
|
136 |
+
msgid "Number of Posts"
|
137 |
+
msgstr "Viestien lukumäärä"
|
138 |
+
|
139 |
+
#: ../include/lcp-options.php:44 .././include/lcp-options.php:44
|
140 |
+
msgid ""
|
141 |
+
"Default number of posts (overriden using <code>numberposts</code> parameter "
|
142 |
+
"on each shortcode)."
|
143 |
+
msgstr ""
|
144 |
+
"Viestien oletuslukumäärä (ylikirjoita käyttämällä <code>numberposts</code> "
|
145 |
+
"parametria jokaisessa lyhytkoodissa)"
|
146 |
+
|
147 |
+
#: ../include/lcp-options.php:46 .././include/lcp-options.php:46
|
148 |
+
msgid "0 - displays the max number of posts per page"
|
149 |
+
msgstr "0 - tulostaa viestien maksimimäärän sivua kohti"
|
150 |
+
|
151 |
+
#: ../include/lcp-options.php:47 .././include/lcp-options.php:47
|
152 |
+
msgid "-1 - displays ALL THE POSTS (no limit)"
|
153 |
+
msgstr "-1 - tulostaa kaikki viestit (ei ylärajaa)"
|
154 |
+
|
155 |
+
#: ../include/lcp-options.php:57 .././include/lcp-options.php:57
|
156 |
+
msgid "Thanks for using List Category Posts."
|
157 |
+
msgstr "Kiitos kun käytit listaa kategorian viestit - toimintoa"
|
158 |
+
|
159 |
+
#: ../include/lcp-options.php:58 .././include/lcp-options.php:58
|
160 |
+
msgid ""
|
161 |
+
"If you need help with the plugin, please visit\n"
|
162 |
+
" the <a href='http://wordpress.org/support/plugin/list-category-"
|
163 |
+
"posts'>WordPress\n"
|
164 |
+
" support forum</a>. Make sure\n"
|
165 |
+
" you <a href='http://wordpress.org/extend/plugins/list-category-posts/"
|
166 |
+
"other_notes/'>read\n"
|
167 |
+
" the instructions</a> to be aware of all the things you can do\n"
|
168 |
+
" with List Category Posts and <a href='https://github.com/picandocodigo/"
|
169 |
+
"List-Category-Posts/blob/master/doc/FAQ.md#frequently-asked-questions'>check "
|
170 |
+
"out the FAQ</a>."
|
171 |
+
msgstr ""
|
172 |
+
"Mikäli tarvitset apua liitännäisen kanssa, ole hyvä ja vieraile \n"
|
173 |
+
" <a href='http://wordpress.org/support/plugin/list-category-"
|
174 |
+
"posts'>WordPress\n"
|
175 |
+
" tukifoorumilla</a>. Varmistathan että\n"
|
176 |
+
" sinä <a href='http://wordpress.org/extend/plugins/list-category-posts/"
|
177 |
+
"other_notes/'>luet\n"
|
178 |
+
" ohjeet</a> ollaksesi tietoinen asioista joita voit tehdä\n"
|
179 |
+
" List Category Posts - liitännäisellä <a href='https://github.com/"
|
180 |
+
"picandocodigo/List-Category-Posts/blob/master/doc/FAQ.md#frequently-asked-"
|
181 |
+
"questions'>lue myös FAQ-dokumentaatiomme-</a>."
|
182 |
+
|
183 |
+
#: ../include/lcp-options.php:69 .././include/lcp-options.php:69
|
184 |
+
msgid ""
|
185 |
+
"Please post <strong>new feature requests, Bug fixes,\n"
|
186 |
+
" enhancements</strong>\n"
|
187 |
+
" to <a href='https://github.com/picandocodigo/List-Category-Posts/"
|
188 |
+
"issues'>GitHub\n"
|
189 |
+
" Issues</a> and check out the\n"
|
190 |
+
" the <a href='https://github.com/picandocodigo/List-Category-"
|
191 |
+
"Posts'>GitHub\n"
|
192 |
+
" repo</a> if you want to contribute code."
|
193 |
+
msgstr ""
|
194 |
+
"Ole hyvä ja raportoi <strong>uusia ominaisuuksia, vikakorjauksia,\n"
|
195 |
+
" parannuksia</strong>\n"
|
196 |
+
" osoitteeseen <a href='https://github.com/picandocodigo/List-Category-"
|
197 |
+
"Posts/issues'>GitHub\n"
|
198 |
+
" asiat</a> katso myös \n"
|
199 |
+
" <a href='https://github.com/picandocodigo/List-Category-Posts'>GitHub\n"
|
200 |
+
" repomme</a> mikäli haluat lahjoittaa koodia."
|
201 |
+
|
202 |
+
#: ../include/lcp-options.php:77 .././include/lcp-options.php:77
|
203 |
+
msgid ""
|
204 |
+
"If you've found the plugin useful, consider making\n"
|
205 |
+
" a <a href='http://picandocodigo.net/programacion/wordpress/list-"
|
206 |
+
"category-posts-wordpress-plugin-english/'\n"
|
207 |
+
" title='Donate via PayPal' rel='nofollow'>donation via PayPal</a>\n"
|
208 |
+
" or visit my Amazon Wishlist\n"
|
209 |
+
" for <a href='http://www.amazon.com/gp/registry/wishlist/2HU1JYOF7DX5Q/"
|
210 |
+
"ref=wl_web'\n"
|
211 |
+
" title='Amazon Wishlist' rel='nofollow'>books</a>\n"
|
212 |
+
" or <a href='http://www.amazon.com/registry/wishlist/1LVYAOJAZQOI0/"
|
213 |
+
"ref=cm_wl_rlist_go_o'\n"
|
214 |
+
" rel='nofollow'>comic books</a> :)."
|
215 |
+
msgstr ""
|
216 |
+
"Mikäli pidit liitännäisestä, ole hyvä ja harkitse\n"
|
217 |
+
" <a href='http://picandocodigo.net/programacion/wordpress/list-category-"
|
218 |
+
"posts-wordpress-plugin-english/'\n"
|
219 |
+
" title='Donate via PayPal' rel='nofollow'>PayPal-lahjoitusta</a>\n"
|
220 |
+
" tai vieraile Amazon-wishlistissa\n"
|
221 |
+
" <a href='http://www.amazon.com/gp/registry/wishlist/2HU1JYOF7DX5Q/"
|
222 |
+
"ref=wl_web'\n"
|
223 |
+
" title='Amazon Wishlist' rel='nofollow'>kirjoja</a>\n"
|
224 |
+
" tai <a href='http://www.amazon.com/registry/wishlist/1LVYAOJAZQOI0/"
|
225 |
+
"ref=cm_wl_rlist_go_o'\n"
|
226 |
+
" rel='nofollow'>sarjakuvakirjoja</a> varten :)."
|
227 |
+
|
228 |
+
#: .././list_cat_posts.php:143 ../list_cat_posts.php:143
|
229 |
+
msgid "How to use"
|
230 |
+
msgstr "How to use"
|
231 |
+
|
232 |
+
#: .././list_cat_posts.php:144 ../list_cat_posts.php:144
|
233 |
+
msgid "Donate"
|
234 |
+
msgstr "Donate"
|
235 |
+
|
236 |
+
#: .././list_cat_posts.php:145 ../list_cat_posts.php:145
|
237 |
+
msgid "Fork on Github"
|
238 |
+
msgstr "Fork on Github"
|
list_cat_posts.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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 by category in 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, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
-
Version: 0.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
10 |
Text Domain: list-category-posts
|
11 |
Domain Path: /languages/
|
12 |
|
13 |
-
Copyright 2008-
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -118,7 +118,8 @@ class ListCategoryPosts{
|
|
118 |
'pagination_next' => '>>',
|
119 |
'pagination_prev' => '<<',
|
120 |
'no_posts_text' => "",
|
121 |
-
'instance' => '0'
|
|
|
122 |
), $atts);
|
123 |
if( $atts['numberposts'] == ''){
|
124 |
$atts['numberposts'] = get_option('numberposts');
|
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 by category in 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, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
+
Version: 0.57
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
10 |
Text Domain: list-category-posts
|
11 |
Domain Path: /languages/
|
12 |
|
13 |
+
Copyright 2008-2015 Fernando Briano (email : fernando@picandocodigo.net)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
118 |
'pagination_next' => '>>',
|
119 |
'pagination_prev' => '<<',
|
120 |
'no_posts_text' => "",
|
121 |
+
'instance' => '0',
|
122 |
+
'no_post_titles' => 'no'
|
123 |
), $atts);
|
124 |
if( $atts['numberposts'] == ''){
|
125 |
$atts['numberposts'] = get_option('numberposts');
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: fernandobt
|
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.1
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -328,6 +328,8 @@ Will print the value of the Custom Field "Mood" but not the text
|
|
328 |
|
329 |
* **link_target** - Select the `target` attribute for links to posts (target=_blank, _self, _parent, _top, *framename*). Example: `[catlink id=3 link_target=_blank]` will create: `<a href="http://localhost/wordpress/?p=45" title="Test post" target="_blank">Test post</a>`
|
330 |
|
|
|
|
|
331 |
== Widget ==
|
332 |
|
333 |
The widget is quite simple, and it doesn't implement all of the plugin's functionality. To use a shortcode in a widget add this code to your theme's functions.php file:
|
@@ -441,6 +443,11 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
441 |
|
442 |
== Changelog ==
|
443 |
|
|
|
|
|
|
|
|
|
|
|
444 |
= 0.56 =
|
445 |
* Adds Indonesian (Bahasa Indonesia) translation. Thanks Dhyayi Warapsari!
|
446 |
* Adds french from France language. Thanks Dorian Herlory!
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.1.1
|
7 |
+
Stable tag: 0.57
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
328 |
|
329 |
* **link_target** - Select the `target` attribute for links to posts (target=_blank, _self, _parent, _top, *framename*). Example: `[catlink id=3 link_target=_blank]` will create: `<a href="http://localhost/wordpress/?p=45" title="Test post" target="_blank">Test post</a>`
|
330 |
|
331 |
+
* **no_post_titles** - If set to `yes`, no post titles will be shown. This may make sense together with `content=yes`.
|
332 |
+
|
333 |
== Widget ==
|
334 |
|
335 |
The widget is quite simple, and it doesn't implement all of the plugin's functionality. To use a shortcode in a widget add this code to your theme's functions.php file:
|
443 |
|
444 |
== Changelog ==
|
445 |
|
446 |
+
= 0.57 =
|
447 |
+
* Add custom image sizes to the list of selectable image sizes in the widget. Thanks [nuss](https://github.com/nuss) for the Pull Request!
|
448 |
+
* New Attribute 'no_post_titles'. Thanks [thomasWeise](https://github.com/thomasWeise) for the Pull Request!
|
449 |
+
* Finnish localization. Thanks [Newman101](https://github.com/Newman101) for the Pull Request!
|
450 |
+
|
451 |
= 0.56 =
|
452 |
* Adds Indonesian (Bahasa Indonesia) translation. Thanks Dhyayi Warapsari!
|
453 |
* Adds french from France language. Thanks Dorian Herlory!
|