Releases: WebberZone/contextual-related-posts
Version 2.9.0
Release post: https://webberzone.com/blog/contextual-related-posts-v2-9-0/
-
Features:
- New section under Settings > Related Posts > Tools to export and import settings. Best option if you'd like the same configuration across multiple WordPress sites
- New shortcode setting
include_cat_ids
to limit top posts to selected categories/taxonomies. Use a comma separated list of term_taxonomy_id - New setting in widget to only include certain categories. Doesn't work with custom taxonomies
-
Enhancements:
- New function:
crp_get_thumb_size()
to get the correct size of the thumbnail - Only run a get_post query if only the post ID is passed to
crp_get_the_post_thumbnail()
$match_fields
parameter added tocrp_posts_match
filter- Updated WPML functions to use latest filters
- Admin scripts are no longer loaded into the head - but using a separate JavaScript file
- Implemented CodeMirror to format custom styles box
- New filters
get_crp_short_circuit
andget_crp_posts_id_short_circuit
to bypass outputs and queries CRP_MAX_WORDS
has been reduced from 500 to 250 to avoid "Too many words" mySQL error- The link to the Contextual Related Posts link is no longer a list item but a smaller text paragraph below the items. You can turn this on by enabling Show Credit.
- New function:
-
Bug fixes:
- Fixed errors created when trying to fetch a featured image or scanned images with remote links
- Saving categories fields in the settings page uses
str_getcsv
and a custom functioncrp_str_putcsv
Version 2.8.0
Release post: https://webberzone.com/blog/contextual-related-posts-v2-8-0/
-
Features:
- New block for Gutenberg aka the block editor. The block is called Related Posts [CRP] and you can find it under the widgets category
- Two new settings in the widget: Order posts and Randomize order that allows the global setting to be overridden
- New setting called Keyword in the Meta box where you can enter a word or a phrase to find related posts. If entered, the plugin will continue to search the
post_title
andpost_content
fields but will use this keyword instead of the values of the title and content of the source post
-
Enhancements:
- Show author, Show date, Show post excerpt and Post thumbnail settings will show a message that they cannnot be modified in case the Rounded thumbnails or No text styles are selected
-
Bug fixes:
- Selecting date order now orders the related posts by newest first
- Fixed PHP warning in the widget
- Stop using
current_time( 'timestamp' )
- Fixes incorrect thumbnail image displayed for attachments in the related posts list
Version 2.7.0
Release post: https://webberzone.com/blog/contextual-related-posts-v2-7-0/
-
Features:
- Caching improvements: "Enable cache" has been renamed to "Cache HTML output". New option "Cache posts only" has been introduced to cache the output of the database query (array of posts)
- New option to order posts by relevance, dates or randomly
- New option to limit posts by the same author
- Thumbnail HTML markup includes
srcset
andsizes
attributes when available. Read Responsive Images in WordPress 4.4
-
Enhancements:
- No longer use
get_the_title
. You can usecrp_title
and/orcrp_thumb_title
filters to edit the post title and the alt/title attributes of the thumbnail respectively - Selecting Rounded thumbnails under Styles tab will allow your thumbnail setting to either be "inline before text" or "only thumbnails, no text"
- No longer use
Version 2.6.3
Release post: https://webberzone.com/blog/contextual-related-posts-v2-6-3/
-
Enhancements:
- Optimized versions of default.png and default2.png
-
Bug fixes:
- Fixed PHP error when viewing feed
- "Exclude categories" setting wouldn't save properly
- Delete any deprecated settings on save should work properly
-
Clearer messages when saving options and a style is activated
Version 2.6.2
Release post: https://webberzone.com/blog/contextual-related-posts-v2-6-1/
- Bug fixes:
- Fixed PHP fatal error "Can’t use function return value in write context"
- Changed default setting for thumbnail width and height to 150
Version 2.6.1
Release post: https://webberzone.com/blog/contextual-related-posts-v2-6-1/
-
Features:
- New options to delete options and/or data on uninstall. This will only work if you visit the Settings page and save the pages.
-
Bug fixes:
- Custom CSS code should now be properly added to the header
- Upgrading settings when "Automatically add related posts to" had no options checked should work properly
Version 2.6.0
Release post: https://webberzone.com/blog/contextual-related-posts-v2-6-0/
-
Features:
- Implemented the Settings API for handling plugin settings
- New Tools page: Recreate the indices, delete the cache and delete old settings
-
Enhancements:
widget_title
filter includes$instance
andid_base
variables
-
Bug fixes:
- Checked for non-zero thumbnail width and height in the widget
- More checks for PHP errors and notices
Version 2.5.1
-
Features:
- New option to disable creation of thumbnails
-
Enhancements:
- Do not delete index on activation
- crp_thumbnail image size will set the default crop option to true if not already set
-
Bug fixes:
- Missing/Unknown PHP errors/warnings in the widget
-
Minor CSS fixes
Version 2.5.0
-
Features:
- New option to disable related posts on mobile devices
- New option to disable related posts on AMP pages
-
Enhancements:
- New filters
crp_thumb_alt
andcrp_thumb_title
to edit the post thumbnail alt and title tags. Use this to remove/replace the tags - New function and filter
crp_permalink
- Saving a post will delete its cache
- New filters
-
Bug fixes:
- Fixed CSS validation errors
- Removed conversion of table schema from/to InnoDB. If you are using a version of mySQL above v5.6, you can alter the table engine to use InnoDB with a FULLTEXT index
- Prevent errors from non-existent post id (virtual post). Contributed by @jnorell
Version 2.4.1
= 2.4.1 =
- Bug fixes:
- Reverted the "Automatically add related posts to" setting introduced in 2.4.0
- Metaboxes will now save when editting attachments
= 2.4.0 =
-
Features:
- New option to randomize the related posts
- New option to limit related posts to the same post type
- "Automatically add related posts to" option applies to widgets
-
Enhancements:
post_types
argument now takes a comma-separated list of post types. Default format when resaving options is also comma-separated
-
Bug fixes:
- Trimming titles should now work with multibyte / non-English characters
-
Deprecated:
crp_max_formatted_content
has been deprecated. Usecrp_trim_char
instead