Releases: picandocodigo/List-Category-Posts
Version 0.85
- New feature: Support for custom field data types for
customfield_orderby
, usecustomfield_orderby_type
. Thanks @vosykapavel! - New feature: Run LCP in standard secondary loop mode with
main_query=no
. See the docs and #445. - Removed the
target
attribute from<a>
elements in post titles (#464) . post_parent=0 post_type=page
now works as expected, displaying only top level pages (#370).- Fixed multiple authors by id (#426).
IMPORTANT!
If you are using a custom template take a look at the updated default template and apply necessary changes to your file (loop code) to be able to use new features. Nevertheless, old templates remain compatible with this version.
Minor fixes
- Fixed includeposts undefined index in older widgets.
- Fixed invalid href attribute in morelink.
New hooks
- Filter hook added:
shortcode_atts_catlist
, see the docs. - Filter hook added:
lcp_pagination_html
, see the source.
Version 0.84
- New feature: Select specific posts by IDs:
[catlist includeposts="2,97"]
. Thanks @hvianna! - New feature: Advanced customfield filtering with
customfield_compare
, see the docs for instructions. - New feature: It is now possible to style
category_description
withcategory_description_tag
andcategory_description_class
. - Changed the default wrapper tag for
content=yes
to<div>
to avoid generating invalid HTML (previously<p>
). - Fixed
excerpt_full
not being run throughthe_excerpt
filters (thanks @StefanXRoos!). The filters are now applied same as forexcerpt_yes
. Please check your setup if you are usingexcerpt_full
. - Fixed
display_id
bug, thanks for reporting @Fiestoforo! - Fixed PHP warnings in WP admin caused by the widget, thanks for reporting @hiskingdomprophecy (#420).
- Fixed
posts_where
filter not being properly removed when usingstarting_with
. - Full refactor of HTML generation making it easier to maintain.
- Upgraded PHP to 7.4 in the Vagrant machine.
Version 0.83.1 - Bugfix release
- Fixes bug with order parameter after refactor which caused
Undefined variable: params
error.
Reported issue: https://wordpress.org/support/topic/notice-undefined-variable-params/
Pull Request: #416
Version 0.83
This is a big release since @zymeth25 and I have been doing lots of refactoring based on maintainability, code quality and testing. It means the code is much cleaner and easier to maintain. So fixing bugs or adding new features should be easier now. If you find any issues, please report them.
- Development: We've refactored a lot of the code in
include
, updated the build, bumped versions, added tests, and more. - Bugfix: An issue where
customfield_display_glue
was shown even when the custom field values were empty - (link)[https://wordpress.org/support/topic/hide-the-glue-content-if-costum-fields-are-empty] - Bugfix: Fixed excluded categories when using an
and
relationship. - New parameter:
ol_offset
, when you use an ordered list, you can set an offset so the posts will start from that number instead of 1. - Templates system refactor - The plugin now uses the template system by default. There should be no changes on how the plugin works, but please do let us know if you have any issues. Building templates should be easier now. You can use the included template as an example to start. It's in the plugin's template folder under the name default.php. Be warned, however, that this is the default template the plugin uses to create output so if you change it, you will change the plugin's default behavior. When you update the plugin this file will be overwritten so it's best not to edit it but copy it over to another file to create your custom template.
More information on templates:
- Pull Request: #411
- Official docs: https://github.com/picandocodigo/List-Category-Posts/wiki/HTML-&-CSS-Customization#templates
Version 0.82
After almost a year without updates, I'm back with a new release. Hopefully next update doesn't come a year from now!
- Tested up to the latest version of WordPress.
- Adds support for several authors. To select posts from one author, you can use the author_posts parameter and use 'user_nicename' (NOT name). Example:
[catlist author_posts="fernando"]
. If you want to select posts from several authors, you need to use the author id instead. You can find the id for each author inwp-admin/users.php
. It needs to be a comma separated value, example:[catlist author_posts="1,2"]
- Rewrote
excludeposts
function. It wasn't working very well withthis
.
Download from here.
Version 0.81
Very small release, but decided to put it out anyway.
In this release:
- Adds
"<span class='lcp_elipsis'>"
to the "..." in pagination, suggested in #385 by @exie-czex, thank you!
e167c0c - Adds 'current_user' as an option to the author_posts parameter to list posts from currently logged in user, suggestion by @anthonyrlocke in #387, thank you!
8d58058 - Locked WordPress version to 5 in the vagrant environment. With the latest version, the whole setup was failing. I will try to look into fixing this in the future, but Pull Requests are welcome :)
0a625a3
Download it from here
Version 0.80.2 Bugfix release
- With 0.80, using the post title as alt attribute in thumbnails made a change to use
get_the_post_thumbnail_url
. But thanks to a post in the support forum, I noticed we lost some of the sizing functionality inget_the_post_thumbnail
. So this version goes back to using get_the_post_thumbnail but keeping the new alt attribute for thumbnails.
Download from WordPress.org:
https://downloads.wordpress.org/plugin/list-category-posts.0.80.2.zip
Version 0.80.1 Bugfix release
Last version we introduced a small bug with thumbnails: the link to the post wouldn't be added to the thumbnail anymore. This fixes the issue!
Thanks Werner Mühl for reporting this 😄
Download from WordPress.org:
https://downloads.wordpress.org/plugin/list-category-posts.0.80.1.zip