forked from themejunkie/recent-posts-widget-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
271 lines (230 loc) · 7.8 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
=== Recent Posts Widget Extended ===
Contributors: satrya, themejunkie
Tags: recent posts, random posts, popular posts, thumbnails, widget, widgets, sidebar, excerpt, category, post tag, taxonomy, post type, post status, shortcode, multiple widgets
Requires at least: 3.7
Tested up to: 4.3
Stable tag: 0.9.9.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Provides flexible and advanced recent posts. Display it via shortcode or widget with thumbnails, post excerpt, taxonomy and more.
== Description ==
This plugin will enable a custom, flexible and super advanced recent posts, you can display it via shortcode or widget. Allows you to display a list of the most recent posts with thumbnail, excerpt and post date, also you can display it from all or specific or multiple taxonomy, post type and much more!
= Features Include =
* WordPress 4.3 Support.
* Shortcode feature. Please read [Other Notes](http://wordpress.org/plugins/recent-posts-widget-extended/other_notes)
* Taxonomy support!
* Post status option.
* Custom html or text before and/or after recent posts.
* Available filter for dev. Please read [FAQ](http://wordpress.org/plugins/recent-posts-widget-extended/faq).
* Better image cropping.
* Allow you to set title url.
* Display by date, comment count or random.
* Display thumbnails, with customizable size and alignment.
* Display excerpt, with customizable length.
* Display from all, specific or multiple category.
* Display from all, specific or multiple tag.
* Display post date.
* Read more option.
* Post type option.
* Custom CSS.
* Multiple widgets.
= Language =
* English
* France
* [Contribute to your language](http://satrya.me/projects/recent-posts-widget-extended/)
= Support =
* Go to [forum support](http://wordpress.org/support/plugin/recent-posts-widget-extended).
* [Rate/Review the plugin](http://wordpress.org/support/view/plugin-reviews/recent-posts-widget-extended).
* Submit translation.
= Plugin Info =
* Developed by [Satrya](http://satrya.me/) & [Theme Junkie](http://www.theme-junkie.com/)
* Check out the [Github](https://github.com/satrya/recent-posts-widget-extended) repo to contribute.
= Posts Plugin Series =
* [Recent Posts Widget Extended](http://wordpress.org/plugins/recent-posts-widget-extended/)
* [Advanced Random Posts Widget](http://wordpress.org/plugins/advanced-random-posts-widget/)
= Contributors =
* [David Kryzaniak](http://profiles.wordpress.org/davidkryzaniak/)
* [AKbyte](http://profiles.wordpress.org/akbyte/)
* [Alexander Sidorov](https://github.com/lkart)
* [Rubens Mariuzzo](https://github.com/rmariuzzo)
* [Ikart](https://github.com/lkart)
== Installation ==
**Through Dashboard**
1. Log in to your WordPress admin panel and go to Plugins -> Add New
2. Type **recent posts widget extended** in the search box and click on search button.
3. Find Recent Posts Widget Extended plugin.
4. Then click on Install Now after that activate the plugin.
5. Go to the widgets page **Appearance -> Widgets**.
6. Find **Recent Posts Extended** widget.
**Installing Via FTP**
1. Download the plugin to your hardisk.
2. Unzip.
3. Upload the **recent-posts-widget-extended** folder into your plugins directory.
4. Log in to your WordPress admin panel and click the Plugins menu.
5. Then activate the plugin.
6. Go to the widgets page **Appearance -> Widgets**.
7. Find **Recent Posts Extended** widget.
== Frequently Asked Questions ==
= How to filter the post query? =
You can use `rpwe_default_query_arguments` to filter it. Example:
`
add_filter( 'rpwe_default_query_arguments', 'your_custom_function' );
function your_custom_function( $args ) {
$args['posts_per_page'] = 10; // Changing the number of posts to show.
return $args;
}
`
= How to filter the post excerpt? =
Post excerpt now comes with filter to easily dev to change/customize it. `apply_filters( 'rpwe_excerpt', get_the_excerpt() )`
= Ordering not working! =
Did you installed any Post or Post Type Order? Please try to deactivate it and try again the ordering. [(related question)](http://wordpress.org/support/topic/ordering-set-to-descending-not-working)
= No image options =
Your theme needs to support Post Thumbnail, please go to http://codex.wordpress.org/Post_Thumbnails to read more info and how to activate it in your theme.
= How to add custom style? =
First, please uncheck the **Use Default Style** option then place the css code below in the Custom CSS box, then you can customize it to fit your needs
`
.rpwe-block ul {
list-style: none !important;
margin-left: 0 !important;
padding-left: 0 !important;
}
.rpwe-block li {
border-bottom: 1px solid #eee;
margin-bottom: 10px;
padding-bottom: 10px;
list-style-type: none;
}
.rpwe-block a {
display: inline !important;
text-decoration: none;
}
.rpwe-block h3 {
background: none !important;
clear: none;
margin-bottom: 0 !important;
margin-top: 0 !important;
font-weight: 400;
font-size: 12px !important;
line-height: 1.5em;
}
.rpwe-thumb {
border: 1px solid #eee !important;
box-shadow: none !important;
margin: 2px 10px 2px 0;
padding: 3px !important;
}
.rpwe-summary {
font-size: 12px;
}
.rpwe-time {
color: #bbb;
font-size: 11px;
}
.rpwe-alignleft {
display: inline;
float: left;
}
.rpwe-alignright {
display: inline;
float: right;
}
.rpwe-aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.rpwe-clearfix:before,.rpwe-clearfix:after {
content: "";
display: table !important;
}
.rpwe-clearfix:after {
clear: both;
}
.rpwe-clearfix {
zoom: 1;
}
`
= Why so many !important in the css code? =
I know it's not good but I have a good reason, the `!important` is to make sure the built-in style compatible with all themes. But if you don't like it, you can turn of the **Use Default Styles** and remove all custom css code in the **Custom CSS** box then create your own style.
= Available filters =
Default arguments
`
rpwe_default_args
`
Post excerpt
`
rpwe_excerpt
`
Post markup
`
rpwe_markup
`
Post query arguments
`
rpwe_default_query_arguments
`
== Screenshots ==
1. The widget settings
== Shorcode Explanation ==
Explanation of shortcode options:
Basic shortcode
`
[rpwe]
`
Display 10 recent posts
`
[rpwe limit="10"]
`
Display 10 recent posts with thumbnail
`
[rpwe limit="10" thumb="true"]
`
**Here's the full default shortcode arguments**
`
limit="5"
offset=""
order="DESC"
orderby="date"
post_type="post"
cat=""
tag=""
taxonomy=""
post_type="post"
post_status="publish"
ignore_sticky="1"
taxonomy=""
excerpt="false"
length="10"
thumb="true"
thumb_height="45"
thumb_width="45"
thumb_default="http://placehold.it/45x45/f0f0f0/ccc"
thumb_align="rpwe-alignleft"
date="true"
readmore="false"
readmore_text="Read More »"
styles_default="true"
cssID=""
before=""
after=""
`
== Changelog ==
= 0.9.9.1 - 12/07/2015 =
- Prepare to support WordPress 4.3
- **Update:** Limit the number of `tags` and `categories` displayed in the widget
= 0.9.9 - 29/11/2014 =
- **Fix:** for "cssID" attribute in shortcodes. Props [Ikart](https://github.com/lkart)
- **Fix:** Thumbnail fallback uses `get_the_post_thumbnail`
- **Add:** `rpwe-img` to the thumbnail.
- **Add:** `css class` option.
- **Improve:** Move `use styles default` option to above the custom css. I'm sorry for the incosistency.
- **Update:** Language
= 0.9.8 - 26/11/2014 =
* **Fix:** Compatibility issue with `Get The Image` plugin/extension.
* **Fix:** Issue with `html or text before and after recent posts`, now it allow all HTML tags.
= 0.9.7 - 13/09/2014 =
* **Add:** Relative date option `eg: 4 days ago`. Props [George Venios](https://github.com/veniosg)
* **Add:** [Featured Video Plus](http://wordpress.org/plugins/featured-video-plus/) plugin support.
* **Add:** Hide widget if no posts exist.
* **Add:** Fallback to the image attachment if no image url exist in the resizer script.
* **Fix:** Compatibility issue if the user theme use the same code library(Aqua Resizer) and causing blank screen.