3.4.0-beta1
Pre-release
Pre-release
-
Feature:
- New REST API route (counter) to get the post count for a post.
- New block: Top 10 Post Count Block that allows you to display the post count for a post.
- [Pro] New Top 10 Query Block that allows you to query related posts using a block in the block or site editor.
- [Pro] New Top 10 Featured Image Block that is an advanced version of the featured image block that supports multiple different image sources.
-
Enhancements:
- The plugin supports
WP_Query
directly iftop_ten_query
is set in the query arguments. - Optimized media handler to reduce the number of queries.
- New filter:
tptn_shortcode_defaults
to filter the default shortcode arguments. - Media Handler changes:
- New parameters
use_site_icon
andstyle
. - Method
get_image_html()
will usewp_get_attachment_image()
if a valid attachment ID is passed. - Support for
decoding
,loading
andfetchpriority
attributes. get_attachment_id_from_url()
will strip size suffixes from the URL before attempting to find the attachment ID.
- New parameters
- Updated top-10/popular-posts block to API version 3.
- New parameter $more_link_text for get_the_excerpt().
- The plugin supports
Full Changelog: v3.3.4...3.4.0-beta1