Skip to content

Releases: WebberZone/contextual-related-posts

Version 3.0.0

08 Jan 09:20
Compare
Choose a tag to compare

Release post: https://webberzone.com/blog/contextual-related-posts-v3-0-0/

  • Features:

    • New CRP_Query class for fetching related posts. This replaces get_crp_posts_id() which will be deprecated in a future version
    • CRP Thumbnails now include the loading="lazy" attribute added in WordPress 5.5
    • New parameter more_link_text that can be passed to get_crp() which holds the "read more". Recommended option to customize the more link text using the filter crp_excerpt_more_link_text or the more link element using crp_excerpt_more_link
    • Three new styles: "Masonry" (like Pinterest), "Grid" and "Rounded thumbnails with CSS grid". Might not work with older browsers
    • Imported settings of Related Posts by Categories and Tags. That plugin is now deprecated with this release.
  • Enhancement/Modifications:

    • If WPML or PolyLang are active, get_crp_posts_id() and CRP_Query will return the translated set of post IDs and external processing is no longer needed
    • Use wp_img_tag_add_srcset_and_sizes_attr() to generate srcset and sizes attributes. The original code to display the srcset and sizes attributes will continue to be used
    • Improved caching with inbuilt expiry. Use CRP_CACHE_TIME in your wp-config.php to set how long the cache should be set for. Default is one month
    • CRP_MAX_WORDS has been reduced to 100
    • Dropped the need for FULLTEXT index on post_content which should save some database space
    • Deprecated the following filters: get_crp_posts_id, crp_posts_now_date, crp_posts_from_date, crp_posts_fields, crp_posts_join, crp_posts_where, crp_posts_groupby, crp_posts_having, crp_posts_orderby, crp_posts_limits, get_crp_posts_id_short_circuit
  • Bug fixes:

    • In the settings page, only built-in taxonomies were being incorrectly displayed
    • If "before list item" is empty, then the output was blanked out
    • Settings help has been fixed
    • crp_get_option would return an incorrect value if $crp_settings global variable was not set

Version 2.9.4

23 Sep 10:47
Compare
Choose a tag to compare

Release post: https://webberzone.com/blog/contextual-related-posts-v2-9-3/

  • Bugs:
    • Fixed nonce verification not always done in Import/Export interface. Thanks to Lenon Leite

Version 2.9.3

15 Jun 08:57
Compare
Choose a tag to compare

Release post: https://webberzone.com/blog/contextual-related-posts-v2-9-3/

  • Features:

    • New constant CRP_VERSION to hold the current version of the plugin
    • New setting to delete FULLTEXT indices on deactivation
  • Enhancements:

    • Added the $args attribute to the filters in main-query.php

Version 2.9.2

08 May 11:09
Compare
Choose a tag to compare

Release post: https://webberzone.com/blog/contextual-related-posts-v2-9-0/

Bug fixes:
* Password protected posts will no longer show the excerpt

Version 2.9.1

26 Apr 18:35
Compare
Choose a tag to compare

Release post: https://webberzone.com/blog/contextual-related-posts-v2-9-0/

  • Bug fixes:
    • Custom CSS box was not saved when saving settings

Version 2.9.0

18 Apr 10:42
Compare
Choose a tag to compare

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 to crp_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 and get_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.
  • 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 function crp_str_putcsv

Version 2.8.0

30 Dec 15:03
Compare
Choose a tag to compare

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 and post_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

16 Jun 20:01
Compare
Choose a tag to compare

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 and sizes attributes when available. Read Responsive Images in WordPress 4.4
  • Enhancements:

    • No longer use get_the_title. You can use crp_title and/or crp_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"

Version 2.6.3

27 Apr 11:40
Compare
Choose a tag to compare

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

04 Apr 07:48
Compare
Choose a tag to compare

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