Releases: picandocodigo/List-Category-Posts
0.65
Releases are back! I'll try to use them with every new version so I can document here what's been changed. Thanks to everyone who's been collaborating with the plugin, hope the documented releases helps you catch up with changes faster and get a better understanding of the decisions.
- @bibz added a feature to wrap the post date with a link to the post: #174 😃
- Following #177, I added the pagination parameter to set a default option
[true|false]
that applies globally to every shortcode. It can be overridden manually in every shortcode with the 'yes|no` values. - Thanks to #176 I realized the morelink_class not working with templates bug was due to a wrong call in the default template file. Here's the diff:
75cd23b#diff-459a07ce61aa50a3e5c8fb0c9ab92d0fL107 - #175 mentioned showing the posts count for a category. We had the
category_count
parameter which did exactly this. But I modified it to be a public function in CatListDisplayer so it can be used from a template file with$this->get_category_count();
. This will just return the number, and they won't be surrounded by parenthesis as they used to be so the user can customize the display from the template. - #165 had a point about using
while ( have_posts() ):
in the template loop. I changed this and some manual tests in my local dev environment show it works as expected. I couldn't reproduce the original bug anyway, so any feedback on this is very welcome. @Sophist-UK guess you got the notification from that issue, but since you wrote the original loop change, let me know if you have any feedback on this.
0.65 will be available on WordPress.org shortly, so you can install the new version manually downloading it from here or just wait for your WordPress dashboard to notify you of the update.
Thanks for reading!
Excerpt fixed
I've been writing some backwards bugs lately due to the lack of tests. I messed up the excerpt differently on each release. Please test this release for a fixed excerpt.
Pagination merged into master
Please test this release that includes the pagination branch before I
Thanks!
Adds Pagination
To use pagination, you need to set the following parameters:
- pagination set it to yes -
[catlist numberposts=10 pagination=yes]
- instance a number to identify the instance where you are using pagination (works with names too). Since you can use the shortcode several times in the same page or post, you need to identify the instance so that you paginate only that instance.
Posts per page are set with the numberposts parameter.
Example:
[catlist id=3 numberposts=10 pagination=yes instance=1]
[catlist id=5 numberposts=5 pagination=yes instance=2]