Contextual Related Posts - Version 3.3.0

Version Description

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

  • Features:

    • Related posts block allows you to set a custom header above the related posts. Leave blank to get the one from the main settings page.
    • New option "Related Meta Keys" under the List Tuning tab. You can enter a comma-separted list of meta keys. Posts that match the same value of the meta key are displayed before the other related posts.
  • Enhancements/modifications:

    • If the number of "Manual related posts" is greater than the number of related posts, then the database query is bypassed drastically improving perfomance
    • Moved Related Posts Tools page under Tools menu
    • Related Posts block is now wrapped in Disabled tags to prevent accidental clicking of links in the block editor
  • Bug fixes:

    • Thumb width and height defaults to 150 in case the settings are missing
    • Setting the style to be text_only didn't enforce no thumbnail
  • Developer:

    • New filters: crp_query_date_query, crp_query_meta_query, crp_query_meta_query_relation
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Contextual Related Posts
Version 3.3.0
Comparing to
See all releases

Code changes from version 3.2.3 to 3.3.0

README.md CHANGED
@@ -8,7 +8,7 @@
8
 
9
  __Requires:__ 5.6
10
 
11
- __Tested up to:__ 5.9
12
 
13
  __License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
14
 
8
 
9
  __Requires:__ 5.6
10
 
11
+ __Tested up to:__ 6.1
12
 
13
  __License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
14
 
contextual-related-posts.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Contextual Related Posts
16
  * Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
17
  * Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
- * Version: 3.2.3
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
@@ -38,7 +38,7 @@ if ( ! defined( 'WPINC' ) ) {
38
  * @var string Contextual Related Posts Version.
39
  */
40
  if ( ! defined( 'CRP_VERSION' ) ) {
41
- define( 'CRP_VERSION', '3.2.3' );
42
  }
43
 
44
 
15
  * Plugin Name: Contextual Related Posts
16
  * Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
17
  * Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
+ * Version: 3.3.0
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
38
  * @var string Contextual Related Posts Version.
39
  */
40
  if ( ! defined( 'CRP_VERSION' ) ) {
41
+ define( 'CRP_VERSION', '3.3.0' );
42
  }
43
 
44
 
includes/admin/admin.php CHANGED
@@ -36,9 +36,9 @@ function crp_add_admin_pages_links() {
36
  );
37
  add_action( "load-$crp_settings_page", 'crp_settings_help' ); // Load the settings contextual help.
38
 
39
- $crp_settings_tools = add_options_page(
40
  esc_html__( 'Contextual Related Posts Tools', 'contextual-related-posts' ),
41
- esc_html__( 'Tools', 'contextual-related-posts' ),
42
  'manage_options',
43
  'crp_tools_page',
44
  'crp_tools_page'
@@ -178,11 +178,6 @@ function crp_admin_css() {
178
  if ( ! is_customize_preview() ) {
179
  $css = '
180
  <style type="text/css">
181
- #adminmenu a[href="options-general.php?page=crp_tools_page"]:before {
182
- content: "\21B3";
183
- margin-right: 0.5em;
184
- opacity: 0.5;
185
- }
186
  a.crp_button {
187
  background: green;
188
  padding: 10px;
36
  );
37
  add_action( "load-$crp_settings_page", 'crp_settings_help' ); // Load the settings contextual help.
38
 
39
+ $crp_settings_tools = add_management_page(
40
  esc_html__( 'Contextual Related Posts Tools', 'contextual-related-posts' ),
41
+ esc_html__( 'Related Posts Tools', 'contextual-related-posts' ),
42
  'manage_options',
43
  'crp_tools_page',
44
  'crp_tools_page'
178
  if ( ! is_customize_preview() ) {
179
  $css = '
180
  <style type="text/css">
 
 
 
 
 
181
  a.crp_button {
182
  background: green;
183
  padding: 10px;
includes/admin/default-settings.php CHANGED
@@ -457,6 +457,14 @@ function crp_settings_list() {
457
  'options' => '1',
458
  'min' => '1',
459
  ),
 
 
 
 
 
 
 
 
460
  'exclude_post_ids' => array(
461
  'id' => 'exclude_post_ids',
462
  'name' => esc_html__( 'Post/page IDs to exclude', 'contextual-related-posts' ),
457
  'options' => '1',
458
  'min' => '1',
459
  ),
460
+ 'related_meta_keys' => array(
461
+ 'id' => 'related_meta_keys',
462
+ 'name' => esc_html__( 'Related Meta Keys', 'contextual-related-posts' ),
463
+ 'desc' => esc_html__( 'Enter a comma-separated list of meta keys. Posts that match the same value of the meta key are displayed before the other related posts', 'contextual-related-posts' ),
464
+ 'type' => 'csv',
465
+ 'options' => '',
466
+ 'size' => 'large',
467
+ ),
468
  'exclude_post_ids' => array(
469
  'id' => 'exclude_post_ids',
470
  'name' => esc_html__( 'Post/page IDs to exclude', 'contextual-related-posts' ),
includes/admin/settings-page.php CHANGED
@@ -32,7 +32,7 @@ function crp_options_page() {
32
  <h1><?php esc_html_e( 'Contextual Related Posts Settings', 'contextual-related-posts' ); ?></h1>
33
 
34
  <p>
35
- <a class="crp_button" href="<?php echo admin_url( 'options-general.php?page=crp_tools_page' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
36
  <?php esc_html_e( 'Visit the Tools page', 'autoclose' ); ?>
37
  </a>
38
  <p>
32
  <h1><?php esc_html_e( 'Contextual Related Posts Settings', 'contextual-related-posts' ); ?></h1>
33
 
34
  <p>
35
+ <a class="crp_button" href="<?php echo admin_url( 'tools.php?page=crp_tools_page' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
36
  <?php esc_html_e( 'Visit the Tools page', 'autoclose' ); ?>
37
  </a>
38
  <p>
includes/blocks/related-posts/block.json CHANGED
@@ -20,6 +20,10 @@
20
  "type": "boolean",
21
  "default": false
22
  },
 
 
 
 
23
  "limit": {
24
  "type": "string",
25
  "default": 6
20
  "type": "boolean",
21
  "default": false
22
  },
23
+ "title": {
24
+ "type": "string",
25
+ "default": "<h3>Related Posts</h3>"
26
+ },
27
  "limit": {
28
  "type": "string",
29
  "default": 6
includes/blocks/related-posts/build/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '644b7ff81961cc116c1996f06630189b');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'd1cffc6d85c2e3d814dc');
includes/blocks/related-posts/build/index.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e={n:function(t){var l=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(l,{a:l}),l},d:function(t,l){for(var o in l)e.o(l,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:l[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.blocks,l=window.wp.element,o=window.wp.i18n,a=window.wp.serverSideRender,n=e.n(a),s=window.wp.blockEditor,r=window.wp.components;(0,t.registerBlockType)("contextual-related-posts/related-posts",{edit:function(e){let{attributes:t,setAttributes:a}=e;const d=null===wp.data.select("core/editor")?0:wp.data.select("core/editor").getCurrentPostId(),{heading:c,limit:u,offset:p,show_excerpt:i,show_author:_,show_date:h,random_order:m,ordering:x,post_thumb_op:b,other_attributes:w}=t,f=(0,s.useBlockProps)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)(r.PanelBody,{title:(0,o.__)("Related Posts Settings","contextual-related-posts"),initialOpen:!0},(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show heading","contextual-related-posts"),help:c?(0,o.__)("Heading displayed","contextual-related-posts"):(0,o.__)("No Heading displayed","contextual-related-posts"),checked:c,onChange:()=>{a({heading:!c})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextControl,{label:(0,o.__)("Number of posts","contextual-related-posts"),value:u,onChange:e=>{a({limit:void 0===e?"":e})},help:(0,o.__)("Maximum number of posts to display","contextual-related-posts")}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextControl,{label:(0,o.__)("Offset","contextual-related-posts"),value:p,onChange:e=>{a({offset:void 0===e?"":e})},help:(0,o.__)("Number of posts to skip from the top","contextual-related-posts")}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show excerpt","contextual-related-posts"),help:i?(0,o.__)("Excerpt displayed","contextual-related-posts"):(0,o.__)("No excerpt","contextual-related-posts"),checked:i,onChange:()=>{a({show_excerpt:!i})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show author","contextual-related-posts"),help:_?(0,o.__)('"by Author Name" displayed',"contextual-related-posts"):(0,o.__)("No author displayed","contextual-related-posts"),checked:_,onChange:()=>{a({show_author:!_})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show date","contextual-related-posts"),help:h?(0,o.__)("Date of post displayed","contextual-related-posts"):(0,o.__)("Date of post not displayed","contextual-related-posts"),checked:h,onChange:()=>{a({show_date:!h})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.SelectControl,{label:(0,o.__)("Thumbnail option","contextual-related-posts"),value:b,onChange:e=>{a({post_thumb_op:e})},help:(0,o.__)("Location of the post thumbnail","contextual-related-posts"),options:[{value:"inline",label:(0,o.__)("Before title","contextual-related-posts")},{value:"after",label:(0,o.__)("After title","contextual-related-posts")},{value:"thumbs_only",label:(0,o.__)("Only thumbnail","contextual-related-posts")},{value:"text_only",label:(0,o.__)("Only text","contextual-related-posts")}]}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.RadioControl,{label:(0,o.__)("Order posts","contextual-related-posts"),selected:x,onChange:e=>{a({ordering:e})},help:(0,o.__)("This option directly edits the query","contextual-related-posts"),options:[{value:"relevance",label:(0,o.__)("By relevance","contextual-related-posts")},{value:"random",label:(0,o.__)("Randomly","contextual-related-posts")},{value:"date",label:(0,o.__)("By date","contextual-related-posts")}]}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Randomize posts","contextual-related-posts"),help:m?(0,o.__)("Posts are shuffled on each load","contextual-related-posts"):(0,o.__)("Posts displayed based on above setting","contextual-related-posts"),checked:m,onChange:()=>{a({random_order:!m})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextareaControl,{label:(0,o.__)("Other attributes","contextual-related-posts"),value:w,onChange:e=>{a({other_attributes:void 0===e?"":e})},help:(0,o.__)("Enter other attributes in a URL-style string-query. e.g. post_types=post,page&link_nofollow=1&exclude_post_ids=5,6","contextual-related-posts")}))))),(0,l.createElement)("div",f,d?(0,l.createElement)(n(),{block:"contextual-related-posts/related-posts",attributes:t}):(0,l.createElement)(r.Placeholder,{icon:"list-view",label:(0,o.__)("Contextual Related Posts","contextual-related-posts"),instructions:(0,o.__)("This is a placeholder for the related posts block. Visit the front end of your site to see the related posts.","contextual-related-posts")})))},save:()=>null})}();
1
+ !function(){"use strict";var e={n:function(t){var l=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(l,{a:l}),l},d:function(t,l){for(var o in l)e.o(l,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:l[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.blocks,l=window.wp.element,o=window.wp.i18n,a=window.wp.serverSideRender,n=e.n(a),s=window.wp.blockEditor,r=window.wp.components;(0,t.registerBlockType)("contextual-related-posts/related-posts",{edit:function(e){let{attributes:t,setAttributes:a}=e;const d=null===wp.data.select("core/editor")?0:wp.data.select("core/editor").getCurrentPostId(),{heading:c,title:u,limit:p,offset:i,show_excerpt:_,show_author:h,show_date:m,random_order:x,ordering:b,post_thumb_op:f,other_attributes:w}=t,E=(0,s.useBlockProps)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)(r.PanelBody,{title:(0,o.__)("Related Posts Settings","contextual-related-posts"),initialOpen:!0},(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show heading","contextual-related-posts"),help:c?(0,o.__)("Heading displayed","contextual-related-posts"):(0,o.__)("No Heading displayed","contextual-related-posts"),checked:c,onChange:()=>{a({heading:!c})}}))),c&&(0,l.createElement)(r.PanelRow,null,(0,l.createElement)(r.TextControl,{label:(0,o.__)("Heading of posts","contextual-related-posts"),value:u,onChange:e=>{a({title:void 0===e?"":e})},help:(0,o.__)("Displayed before the list of the posts as a master heading. HTML allowed.","contextual-related-posts")})),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextControl,{label:(0,o.__)("Number of posts","contextual-related-posts"),value:p,onChange:e=>{a({limit:void 0===e?"":e})},help:(0,o.__)("Maximum number of posts to display","contextual-related-posts")}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextControl,{label:(0,o.__)("Offset","contextual-related-posts"),value:i,onChange:e=>{a({offset:void 0===e?"":e})},help:(0,o.__)("Number of posts to skip from the top","contextual-related-posts")}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show excerpt","contextual-related-posts"),help:_?(0,o.__)("Excerpt displayed","contextual-related-posts"):(0,o.__)("No excerpt","contextual-related-posts"),checked:_,onChange:()=>{a({show_excerpt:!_})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show author","contextual-related-posts"),help:h?(0,o.__)('"by Author Name" displayed',"contextual-related-posts"):(0,o.__)("No author displayed","contextual-related-posts"),checked:h,onChange:()=>{a({show_author:!h})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Show date","contextual-related-posts"),help:m?(0,o.__)("Date of post displayed","contextual-related-posts"):(0,o.__)("Date of post not displayed","contextual-related-posts"),checked:m,onChange:()=>{a({show_date:!m})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.SelectControl,{label:(0,o.__)("Thumbnail option","contextual-related-posts"),value:f,onChange:e=>{a({post_thumb_op:e})},help:(0,o.__)("Location of the post thumbnail","contextual-related-posts"),options:[{value:"inline",label:(0,o.__)("Before title","contextual-related-posts")},{value:"after",label:(0,o.__)("After title","contextual-related-posts")},{value:"thumbs_only",label:(0,o.__)("Only thumbnail","contextual-related-posts")},{value:"text_only",label:(0,o.__)("Only text","contextual-related-posts")}]}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.RadioControl,{label:(0,o.__)("Order posts","contextual-related-posts"),selected:b,onChange:e=>{a({ordering:e})},help:(0,o.__)("This option directly edits the query","contextual-related-posts"),options:[{value:"relevance",label:(0,o.__)("By relevance","contextual-related-posts")},{value:"random",label:(0,o.__)("Randomly","contextual-related-posts")},{value:"date",label:(0,o.__)("By date","contextual-related-posts")}]}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.ToggleControl,{label:(0,o.__)("Randomize posts","contextual-related-posts"),help:x?(0,o.__)("Posts are shuffled on each load","contextual-related-posts"):(0,o.__)("Posts displayed based on above setting","contextual-related-posts"),checked:x,onChange:()=>{a({random_order:!x})}}))),(0,l.createElement)(r.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(r.TextareaControl,{label:(0,o.__)("Other attributes","contextual-related-posts"),value:w,onChange:e=>{a({other_attributes:void 0===e?"":e})},help:(0,o.__)("Enter other attributes in a URL-style string-query. e.g. post_types=post,page&link_nofollow=1&exclude_post_ids=5,6","contextual-related-posts")}))))),(0,l.createElement)("div",E,d?(0,l.createElement)(r.Disabled,null,(0,l.createElement)(n(),{block:"contextual-related-posts/related-posts",attributes:t})):(0,l.createElement)(r.Placeholder,{icon:"list-view",label:(0,o.__)("Contextual Related Posts","contextual-related-posts"),instructions:(0,o.__)("This is a placeholder for the related posts block. Visit the front end of your site to see the related posts.","contextual-related-posts")})))},save(){return null}})}();
includes/blocks/related-posts/src/edit.js CHANGED
@@ -16,6 +16,7 @@ import ServerSideRender from '@wordpress/server-side-render';
16
  import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
17
 
18
  import {
 
19
  TextControl,
20
  TextareaControl,
21
  ToggleControl,
@@ -49,6 +50,7 @@ export default function Edit({ attributes, setAttributes }) {
49
  : wp.data.select('core/editor').getCurrentPostId();
50
  const {
51
  heading,
 
52
  limit,
53
  offset,
54
  show_excerpt,
@@ -64,6 +66,11 @@ export default function Edit({ attributes, setAttributes }) {
64
  const toggleHeading = () => {
65
  setAttributes({ heading: !heading });
66
  };
 
 
 
 
 
67
  const onChangeLimit = (newLimit) => {
68
  setAttributes({
69
  limit: undefined === newLimit ? '' : newLimit,
@@ -120,6 +127,19 @@ export default function Edit({ attributes, setAttributes }) {
120
  />
121
  </fieldset>
122
  </PanelRow>
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  <PanelRow>
124
  <fieldset>
125
  <TextControl
@@ -299,10 +319,12 @@ export default function Edit({ attributes, setAttributes }) {
299
  )}
300
  ></Placeholder>
301
  ) : (
302
- <ServerSideRender
303
- block="contextual-related-posts/related-posts"
304
- attributes={attributes}
305
- />
 
 
306
  )}
307
  </div>
308
  </>
16
  import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
17
 
18
  import {
19
+ Disabled,
20
  TextControl,
21
  TextareaControl,
22
  ToggleControl,
50
  : wp.data.select('core/editor').getCurrentPostId();
51
  const {
52
  heading,
53
+ title,
54
  limit,
55
  offset,
56
  show_excerpt,
66
  const toggleHeading = () => {
67
  setAttributes({ heading: !heading });
68
  };
69
+ const onChangeTitle = (newTitle) => {
70
+ setAttributes({
71
+ title: undefined === newTitle ? '' : newTitle,
72
+ });
73
+ };
74
  const onChangeLimit = (newLimit) => {
75
  setAttributes({
76
  limit: undefined === newLimit ? '' : newLimit,
127
  />
128
  </fieldset>
129
  </PanelRow>
130
+ {heading && (
131
+ <PanelRow>
132
+ <TextControl
133
+ label={__('Heading of posts', 'contextual-related-posts')}
134
+ value={title}
135
+ onChange={onChangeTitle}
136
+ help={__(
137
+ 'Displayed before the list of the posts as a master heading. HTML allowed.',
138
+ 'contextual-related-posts'
139
+ )}
140
+ />
141
+ </PanelRow>
142
+ )}
143
  <PanelRow>
144
  <fieldset>
145
  <TextControl
319
  )}
320
  ></Placeholder>
321
  ) : (
322
+ <Disabled>
323
+ <ServerSideRender
324
+ block="contextual-related-posts/related-posts"
325
+ attributes={attributes}
326
+ />
327
+ </Disabled>
328
  )}
329
  </div>
330
  </>
includes/class-crp-query.php CHANGED
@@ -67,6 +67,22 @@ if ( ! class_exists( 'CRP_Query' ) ) :
67
  */
68
  public $crp_post_meta;
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  /**
71
  * Fields to be matched.
72
  *
@@ -171,6 +187,15 @@ if ( ! class_exists( 'CRP_Query' ) ) :
171
  // Save post meta into a class-wide variable.
172
  $this->crp_post_meta = get_post_meta( $source_post->ID, 'crp_post_meta', true );
173
 
 
 
 
 
 
 
 
 
 
174
  // Set the random order and save it in a class-wide variable.
175
  $random_order = ( $args['random_order'] || ( isset( $args['ordering'] ) && 'random' === $args['ordering'] ) ) ? true : false;
176
  // If we need to order randomly then set strict_limit to false.
@@ -313,7 +338,7 @@ if ( ! class_exists( 'CRP_Query' ) ) :
313
  $args['tax_query'] = $tax_query; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query
314
 
315
  // Set date_query.
316
- $args['date_query'] = array(
317
  array(
318
  'after' => ( 0 === absint( $args['daily_range'] ) ) ? '' : gmdate( 'Y-m-d', strtotime( current_time( 'mysql' ) ) - ( absint( $args['daily_range'] ) * DAY_IN_SECONDS ) ),
319
  'before' => current_time( 'mysql' ),
@@ -321,27 +346,46 @@ if ( ! class_exists( 'CRP_Query' ) ) :
321
  ),
322
  );
323
 
324
- // Set post_status.
325
- $args['post_status'] = empty( $args['post_status'] ) ? array( 'publish', 'inherit' ) : $args['post_status'];
326
-
327
- // Set post__not_in for WP_Query using exclude_post_ids.
328
- $exclude_post_ids = empty( $args['exclude_post_ids'] ) ? array() : wp_parse_id_list( $args['exclude_post_ids'] );
 
 
 
 
329
 
330
  /**
331
- * Filter exclude post IDs array.
332
  *
333
- * @since 2.3.0
334
- * @since 2.9.3 Added $args
335
- * @since 3.2.0 Added $source_post
336
  *
337
- * @param array $exclude_post_ids Array of post IDs.
338
- * @param array $args Arguments array.
339
- * @param WP_Post $source_post Source post.
340
  */
341
- $exclude_post_ids = apply_filters( 'crp_exclude_post_ids', $exclude_post_ids, $args, $source_post );
 
 
 
 
 
 
 
 
 
 
 
 
 
342
 
343
- $exclude_post_ids[] = $source_post->ID;
344
- $args['post__not_in'] = $exclude_post_ids;
 
 
 
 
 
345
 
346
  // Same author.
347
  if ( isset( $args['same_author'] ) && $args['same_author'] ) {
@@ -731,29 +775,38 @@ if ( ! class_exists( 'CRP_Query' ) ) :
731
  return $posts;
732
  }
733
 
 
 
734
  // Check the cache if there are any posts saved.
735
  if ( ! empty( $this->query_args['cache_posts'] ) && ! ( is_preview() || is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) ) {
736
 
737
  $meta_key = crp_cache_get_key( $this->input_query_args );
738
 
739
- $post_ids = get_crp_cache( $this->source_post->ID, $meta_key );
740
-
741
- if ( ! empty( $post_ids ) ) {
742
- $posts = get_posts(
743
- array(
744
- 'post__in' => $post_ids,
745
- 'fields' => $query->get( 'fields' ),
746
- 'orderby' => 'post__in',
747
- 'numberposts' => $query->get( 'posts_per_page' ),
748
- 'post_type' => $query->get( 'post_type' ),
749
- )
750
- );
751
- $query->found_posts = count( $posts );
752
- $query->max_num_pages = ceil( $query->found_posts / $query->get( 'posts_per_page' ) );
753
- $this->in_cache = true;
754
  }
755
  }
756
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  /**
758
  * Filters the posts_pre_query of CRP_Query after processing and before returning.
759
  *
@@ -796,21 +849,55 @@ if ( ! class_exists( 'CRP_Query' ) ) :
796
  shuffle( $posts );
797
  }
798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
799
  // Manual Posts (manual_related - set via the Post Meta) or Include Posts (can be set as a parameter).
800
  $post_ids = array();
801
 
802
- if ( ! empty( $this->crp_post_meta['manual_related'] ) ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
803
- $manual_related = wp_parse_id_list( $this->crp_post_meta['manual_related'] );
804
- $post_ids = array_merge( $post_ids, $manual_related );
805
- }
806
- if ( ! empty( $this->query_args['include_post_ids'] ) ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
807
- $include_post_ids = wp_parse_id_list( $this->query_args['include_post_ids'] );
808
- $post_ids = array_merge( $post_ids, $include_post_ids );
809
  }
810
  if ( ! empty( $post_ids ) ) {
811
  $extra_posts = get_posts(
812
  array(
813
- 'post__in' => $post_ids,
814
  'fields' => $query->get( 'fields' ),
815
  'orderby' => 'post__in',
816
  'numberposts' => '-1',
@@ -858,5 +945,34 @@ if ( ! class_exists( 'CRP_Query' ) ) :
858
  */
859
  return apply_filters( 'crp_query_the_posts', $posts, $this->query_args, $query );
860
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
861
  }
862
  endif;
67
  */
68
  public $crp_post_meta;
69
 
70
+ /**
71
+ * Array of manual related post IDs.
72
+ *
73
+ * @since 3.3.0
74
+ * @var array
75
+ */
76
+ public $manual_related = array();
77
+
78
+ /**
79
+ * Number of manual related posts.
80
+ *
81
+ * @since 3.3.0
82
+ * @var int
83
+ */
84
+ public $no_of_manual_related = 0;
85
+
86
  /**
87
  * Fields to be matched.
88
  *
187
  // Save post meta into a class-wide variable.
188
  $this->crp_post_meta = get_post_meta( $source_post->ID, 'crp_post_meta', true );
189
 
190
+ if ( ! empty( $this->crp_post_meta['manual_related'] ) ) {
191
+ $this->manual_related = wp_parse_id_list( $this->crp_post_meta['manual_related'] );
192
+ }
193
+ if ( ! empty( $args['include_post_ids'] ) ) {
194
+ $include_post_ids = wp_parse_id_list( $args['include_post_ids'] );
195
+ $this->manual_related = array_merge( $this->manual_related, $include_post_ids );
196
+ }
197
+ $this->no_of_manual_related = count( $this->manual_related );
198
+
199
  // Set the random order and save it in a class-wide variable.
200
  $random_order = ( $args['random_order'] || ( isset( $args['ordering'] ) && 'random' === $args['ordering'] ) ) ? true : false;
201
  // If we need to order randomly then set strict_limit to false.
338
  $args['tax_query'] = $tax_query; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query
339
 
340
  // Set date_query.
341
+ $date_query = array(
342
  array(
343
  'after' => ( 0 === absint( $args['daily_range'] ) ) ? '' : gmdate( 'Y-m-d', strtotime( current_time( 'mysql' ) ) - ( absint( $args['daily_range'] ) * DAY_IN_SECONDS ) ),
344
  'before' => current_time( 'mysql' ),
346
  ),
347
  );
348
 
349
+ /**
350
+ * Filter the date_query passed to WP_Query.
351
+ *
352
+ * @since 3.3.0
353
+ *
354
+ * @param array $date_query Array of date parameters to be passed to WP_Query.
355
+ * @param array $args Arguments array.
356
+ */
357
+ $args['date_query'] = apply_filters( 'crp_query_date_query', $date_query, $args );
358
 
359
  /**
360
+ * Filter the meta_query passed to WP_Query.
361
  *
362
+ * @since 3.3.0
 
 
363
  *
364
+ * @param array $meta_query Array of meta_query parameters.
365
+ * @param array $args Arguments array.
 
366
  */
367
+ $meta_query = apply_filters( 'crp_query_meta_query', array(), $args ); // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
368
+
369
+ // Add a relation key if more than one $meta_query.
370
+ if ( count( $meta_query ) > 1 ) {
371
+ /**
372
+ * Filter the meta_query relation parameter.
373
+ *
374
+ * @since 3.3.0
375
+ *
376
+ * @param string $relation The logical relationship between each inner meta_query array when there is more than one. Default is 'AND'.
377
+ * @param array $args Arguments array.
378
+ */
379
+ $meta_query['relation'] = apply_filters( 'crp_query_meta_query_relation', 'AND', $args );
380
+ }
381
 
382
+ $args['meta_query'] = $meta_query; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
383
+
384
+ // Set post_status.
385
+ $args['post_status'] = empty( $args['post_status'] ) ? array( 'publish', 'inherit' ) : $args['post_status'];
386
+
387
+ // Set post__not_in for WP_Query using exclude_post_ids.
388
+ $args['post__not_in'] = $this->exclude_post_ids( $args );
389
 
390
  // Same author.
391
  if ( isset( $args['same_author'] ) && $args['same_author'] ) {
775
  return $posts;
776
  }
777
 
778
+ $post_ids = array();
779
+
780
  // Check the cache if there are any posts saved.
781
  if ( ! empty( $this->query_args['cache_posts'] ) && ! ( is_preview() || is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) ) {
782
 
783
  $meta_key = crp_cache_get_key( $this->input_query_args );
784
 
785
+ $cached_data = get_crp_cache( $this->source_post->ID, $meta_key );
786
+ if ( ! empty( $cached_data ) ) {
787
+ $post_ids = $cached_data;
788
+ $this->in_cache = true;
 
 
 
 
 
 
 
 
 
 
 
789
  }
790
  }
791
 
792
+ if ( ! empty( $this->manual_related ) && ( $this->no_of_manual_related >= $this->query_args['limit'] ) ) {
793
+ $post_ids = array_merge( $post_ids, $this->manual_related );
794
+ }
795
+
796
+ if ( ! empty( $post_ids ) ) {
797
+ $posts = get_posts(
798
+ array(
799
+ 'post__in' => array_unique( $post_ids ),
800
+ 'fields' => $query->get( 'fields' ),
801
+ 'orderby' => 'post__in',
802
+ 'numberposts' => $query->get( 'posts_per_page' ),
803
+ 'post_type' => $query->get( 'post_type' ),
804
+ )
805
+ );
806
+ $query->found_posts = count( $posts );
807
+ $query->max_num_pages = ceil( $query->found_posts / $query->get( 'posts_per_page' ) );
808
+ }
809
+
810
  /**
811
  * Filters the posts_pre_query of CRP_Query after processing and before returning.
812
  *
849
  shuffle( $posts );
850
  }
851
 
852
+ // Related posts by meta_key.
853
+ if ( ! empty( $this->query_args['related_meta_keys'] ) ) {
854
+ $related_meta_query = array();
855
+ $related_meta_keys = wp_parse_list( $this->query_args['related_meta_keys'] );
856
+ foreach ( $related_meta_keys as $related_meta_key ) {
857
+ $related_meta_value = (string) get_post_meta( $this->source_post->ID, $related_meta_key, true );
858
+ if ( ! empty( $related_meta_value ) ) {
859
+ $related_meta_query[] = array(
860
+ 'key' => $related_meta_key,
861
+ 'value' => $related_meta_value,
862
+ );
863
+ }
864
+ }
865
+
866
+ if ( count( $related_meta_query ) > 1 ) {
867
+ /**
868
+ * Filter the meta_query relation parameter for related posts by meta_key.
869
+ *
870
+ * @since 3.3.0
871
+ *
872
+ * @param string $relation The logical relationship between each inner meta_query array when there is more than one. Default is 'OR'.
873
+ */
874
+ $related_meta_query['relation'] = apply_filters( 'crp_query_related_meta_query_relation', 'OR' );
875
+ }
876
+
877
+ if ( ! empty( $related_meta_query ) ) {
878
+ $meta_posts = get_posts(
879
+ array(
880
+ 'post__not_in' => $this->exclude_post_ids( $this->query_args ),
881
+ 'fields' => $query->get( 'fields' ),
882
+ 'numberposts' => $query->get( 'posts_per_page' ),
883
+ 'post_type' => $query->get( 'post_type' ),
884
+ 'meta_query' => $related_meta_query, // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
885
+ )
886
+ );
887
+ $posts = array_merge( $meta_posts, $posts );
888
+ }
889
+ }
890
+
891
  // Manual Posts (manual_related - set via the Post Meta) or Include Posts (can be set as a parameter).
892
  $post_ids = array();
893
 
894
+ if ( ! empty( $this->manual_related ) && ( $this->no_of_manual_related < $this->query_args['limit'] ) ) {
895
+ $post_ids = array_merge( $post_ids, $this->manual_related );
 
 
 
 
 
896
  }
897
  if ( ! empty( $post_ids ) ) {
898
  $extra_posts = get_posts(
899
  array(
900
+ 'post__in' => array_unique( $post_ids ),
901
  'fields' => $query->get( 'fields' ),
902
  'orderby' => 'post__in',
903
  'numberposts' => '-1',
945
  */
946
  return apply_filters( 'crp_query_the_posts', $posts, $this->query_args, $query );
947
  }
948
+
949
+ /**
950
+ * Exclude Post IDs. Allows other plugins/functions to hook onto this and extend the list.
951
+ *
952
+ * @param array $args Array of arguments for CRP_Query.
953
+ * @return array Array of post IDs to exclude.
954
+ */
955
+ public function exclude_post_ids( $args ) {
956
+
957
+ $exclude_post_ids = empty( $args['exclude_post_ids'] ) ? array() : wp_parse_id_list( $args['exclude_post_ids'] );
958
+
959
+ /**
960
+ * Filter exclude post IDs array.
961
+ *
962
+ * @since 2.3.0
963
+ * @since 2.9.3 Added $args
964
+ * @since 3.2.0 Added $source_post
965
+ *
966
+ * @param array $exclude_post_ids Array of post IDs.
967
+ * @param array $args Arguments array.
968
+ * @param WP_Post $source_post Source post.
969
+ */
970
+ $exclude_post_ids = apply_filters( 'crp_exclude_post_ids', $exclude_post_ids, $args, $this->source_post );
971
+
972
+ $exclude_post_ids[] = $this->source_post->ID;
973
+
974
+ return $exclude_post_ids;
975
+ }
976
+
977
  }
978
  endif;
includes/header.php CHANGED
@@ -76,8 +76,8 @@ add_action( 'wp_enqueue_scripts', 'crp_heading_styles' );
76
  function crp_get_style( $style = '' ) {
77
 
78
  $style_array = array();
79
- $thumb_width = crp_get_option( 'thumb_width' );
80
- $thumb_height = crp_get_option( 'thumb_height' );
81
  $crp_style = ! empty( $style ) ? $style : crp_get_option( 'crp_styles' );
82
 
83
  switch ( $crp_style ) {
76
  function crp_get_style( $style = '' ) {
77
 
78
  $style_array = array();
79
+ $thumb_width = crp_get_option( 'thumb_width', 150 );
80
+ $thumb_height = crp_get_option( 'thumb_height', 150 );
81
  $crp_style = ! empty( $style ) ? $style : crp_get_option( 'crp_styles' );
82
 
83
  switch ( $crp_style ) {
includes/main-query.php CHANGED
@@ -112,8 +112,12 @@ function get_crp( $args = array() ) {
112
  return $custom_template;
113
  }
114
 
115
- $style = ( 'text_only' === $args['post_thumb_op'] ) ? 'text_only' : $args['crp_styles'];
116
- $style_array = crp_get_style( $style );
 
 
 
 
117
  $post_classes = array(
118
  'main' => 'crp_related',
119
  'widget' => $args['is_widget'] ? 'crp_related_widget' : '',
112
  return $custom_template;
113
  }
114
 
115
+ if ( 'text_only' === $args['post_thumb_op'] || 'text_only' === $args['crp_styles'] ) {
116
+ $args['crp_styles'] = 'text_only';
117
+ $args['post_thumb_op'] = 'text_only';
118
+ }
119
+ $style_array = crp_get_style( $args['crp_styles'] );
120
+
121
  $post_classes = array(
122
  'main' => 'crp_related',
123
  'widget' => $args['is_widget'] ? 'crp_related_widget' : '',
includes/modules/shortcode.php CHANGED
@@ -28,11 +28,12 @@ function crp_shortcode( $atts, $content = null ) { // phpcs:ignore Generic.CodeA
28
  array_merge(
29
  $crp_settings,
30
  array(
31
- 'heading' => 1,
32
- 'is_shortcode' => 1,
33
- 'offset' => 0,
34
- 'include_cat_ids' => '',
35
- 'include_post_ids' => '',
 
36
  )
37
  ),
38
  $atts,
@@ -42,5 +43,3 @@ function crp_shortcode( $atts, $content = null ) { // phpcs:ignore Generic.CodeA
42
  return get_crp( $atts );
43
  }
44
  add_shortcode( 'crp', 'crp_shortcode' );
45
-
46
-
28
  array_merge(
29
  $crp_settings,
30
  array(
31
+ 'heading' => 1,
32
+ 'is_shortcode' => 1,
33
+ 'offset' => 0,
34
+ 'include_cat_ids' => '',
35
+ 'include_post_ids' => '',
36
+ 'related_meta_keys' => '',
37
  )
38
  ),
39
  $atts,
43
  return get_crp( $atts );
44
  }
45
  add_shortcode( 'crp', 'crp_shortcode' );
 
 
includes/output-generator.php CHANGED
@@ -64,7 +64,8 @@ function crp_heading_title( $args ) {
64
  $title = '';
65
 
66
  if ( $args['heading'] && ! $args['is_widget'] ) {
67
- $title = str_replace( '%postname%', $post->post_title, $args['title'] ); // Replace %postname% with the title of the current post.
 
68
  }
69
 
70
  /**
64
  $title = '';
65
 
66
  if ( $args['heading'] && ! $args['is_widget'] ) {
67
+ $title = empty( $args['title'] ) ? crp_get_option( 'title', '' ) : $args['title'];
68
+ $title = str_replace( '%postname%', $post->post_title, $title ); // Replace %postname% with the title of the current post.
69
  }
70
 
71
  /**
languages/contextual-related-posts-en_US.mo CHANGED
Binary file
languages/contextual-related-posts-en_US.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contextual Related Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2022-05-03 19:27+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza\n"
8
  "Language-Team: WebberZone\n"
@@ -15,11 +15,11 @@ msgstr ""
15
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
16
  "translate_nooped_plural\n"
17
  "X-Poedit-Basepath: ..\n"
18
- "X-Generator: Poedit 3.0\n"
19
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
- #: includes/admin/admin.php:31 includes/blocks/related-posts/src/edit.js:295
23
  msgid "Contextual Related Posts"
24
  msgstr ""
25
 
@@ -32,8 +32,8 @@ msgstr ""
32
  msgid "Contextual Related Posts Tools"
33
  msgstr ""
34
 
35
- #: includes/admin/admin.php:41 includes/admin/help-tab.php:57
36
- msgid "Tools"
37
  msgstr ""
38
 
39
  #: includes/admin/admin.php:69
@@ -209,6 +209,7 @@ msgid ""
209
  msgstr ""
210
 
211
  #: includes/admin/default-settings.php:190
 
212
  msgid "Heading of posts"
213
  msgstr ""
214
 
@@ -243,7 +244,7 @@ msgid "No related posts found"
243
  msgstr ""
244
 
245
  #: includes/admin/default-settings.php:217
246
- #: includes/admin/default-settings.php:702
247
  msgid "Show post excerpt"
248
  msgstr ""
249
 
@@ -258,7 +259,7 @@ msgid "Length of excerpt (in words)"
258
  msgstr ""
259
 
260
  #: includes/admin/default-settings.php:233
261
- #: includes/blocks/related-posts/src/edit.js:183
262
  msgid "Show date"
263
  msgstr ""
264
 
@@ -269,7 +270,7 @@ msgid ""
269
  msgstr ""
270
 
271
  #: includes/admin/default-settings.php:240
272
- #: includes/blocks/related-posts/src/edit.js:166
273
  msgid "Show author"
274
  msgstr ""
275
 
@@ -328,7 +329,7 @@ msgid "Exclude on Terms"
328
  msgstr ""
329
 
330
  #: includes/admin/default-settings.php:298
331
- #: includes/admin/default-settings.php:470
332
  msgid ""
333
  "The field above has an autocomplete so simply start typing in the starting "
334
  "letters and it will prompt you with options. This field requires a specific "
@@ -356,7 +357,7 @@ msgid "After each list item"
356
  msgstr ""
357
 
358
  #: includes/admin/default-settings.php:363
359
- #: includes/admin/default-settings.php:693
360
  msgid "Number of posts to display"
361
  msgstr ""
362
 
@@ -378,13 +379,13 @@ msgid ""
378
  msgstr ""
379
 
380
  #: includes/admin/default-settings.php:380
381
- #: includes/blocks/related-posts/src/edit.js:231
382
  #: includes/modules/class-crp-widget.php:128
383
  msgid "Order posts"
384
  msgstr ""
385
 
386
  #: includes/admin/default-settings.php:388
387
- #: includes/blocks/related-posts/src/edit.js:258
388
  msgid "Randomize posts"
389
  msgstr ""
390
 
@@ -492,24 +493,34 @@ msgid ""
492
  msgstr ""
493
 
494
  #: includes/admin/default-settings.php:462
495
- msgid "Post/page IDs to exclude"
496
  msgstr ""
497
 
498
  #: includes/admin/default-settings.php:463
499
  msgid ""
 
 
 
 
 
 
 
 
 
 
500
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
501
  "188,320,500"
502
  msgstr ""
503
 
504
- #: includes/admin/default-settings.php:469
505
  msgid "Exclude Terms"
506
  msgstr ""
507
 
508
- #: includes/admin/default-settings.php:478
509
  msgid "Exclude Term Taxonomy IDs"
510
  msgstr ""
511
 
512
- #: includes/admin/default-settings.php:479
513
  msgid ""
514
  "This is a readonly field that is automatically populated based on the above "
515
  "input when the settings are saved. These might differ from the IDs visible "
@@ -517,11 +528,11 @@ msgid ""
517
  "the term_taxonomy_id which is unique to this taxonomy."
518
  msgstr ""
519
 
520
- #: includes/admin/default-settings.php:486
521
  msgid "Disable contextual matching"
522
  msgstr ""
523
 
524
- #: includes/admin/default-settings.php:487
525
  msgid ""
526
  "Selecting this option will turn off contextual matching. This is only useful "
527
  "if you activate the option: \"Only from same\" from the General tab. "
@@ -529,48 +540,48 @@ msgid ""
529
  "with no relevance."
530
  msgstr ""
531
 
532
- #: includes/admin/default-settings.php:493
533
  msgid "Disable contextual matching ONLY on attachments and custom post types"
534
  msgstr ""
535
 
536
- #: includes/admin/default-settings.php:494
537
  msgid ""
538
  "Applies only if the previous option is checked. Selecting this option will "
539
  "retain contextual matching for posts and pages but disable this on any "
540
  "custom post types."
541
  msgstr ""
542
 
543
- #: includes/admin/default-settings.php:523
544
- #: includes/admin/default-settings.php:709
545
- #: includes/blocks/related-posts/src/edit.js:204
546
  msgid "Location of the post thumbnail"
547
  msgstr ""
548
 
549
- #: includes/admin/default-settings.php:528
550
- #: includes/admin/default-settings.php:714
551
  msgid "Display thumbnails inline with posts, before title"
552
  msgstr ""
553
 
554
- #: includes/admin/default-settings.php:529
555
- #: includes/admin/default-settings.php:715
556
  msgid "Display thumbnails inline with posts, after title"
557
  msgstr ""
558
 
559
- #: includes/admin/default-settings.php:530
560
- #: includes/admin/default-settings.php:716
561
  msgid "Display only thumbnails, no text"
562
  msgstr ""
563
 
564
- #: includes/admin/default-settings.php:531
565
- #: includes/admin/default-settings.php:717
566
  msgid "Do not display thumbnails, only text"
567
  msgstr ""
568
 
569
- #: includes/admin/default-settings.php:536
570
  msgid "Thumbnail size"
571
  msgstr ""
572
 
573
- #: includes/admin/default-settings.php:537
574
  msgid ""
575
  "You can choose from existing image sizes above or create a custom size. If "
576
  "you have chosen Custom size above, then enter the width, height and crop "
@@ -578,125 +589,125 @@ msgid ""
578
  "width and/or height below, existing images will not be automatically resized."
579
  msgstr ""
580
 
581
- #: includes/admin/default-settings.php:539
582
  #, php-format
583
  msgid "I recommend using %1$s or %2$s to regenerate all image sizes."
584
  msgstr ""
585
 
586
- #: includes/admin/default-settings.php:549
587
- #: includes/admin/default-settings.php:722
588
  #: includes/modules/class-crp-widget.php:125
589
  msgid "Thumbnail width"
590
  msgstr ""
591
 
592
- #: includes/admin/default-settings.php:558
593
- #: includes/admin/default-settings.php:731
594
  #: includes/modules/class-crp-widget.php:120
595
  msgid "Thumbnail height"
596
  msgstr ""
597
 
598
- #: includes/admin/default-settings.php:567
599
  msgid "Hard crop thumbnails"
600
  msgstr ""
601
 
602
- #: includes/admin/default-settings.php:568
603
  msgid ""
604
  "Check this box to hard crop the thumbnails. i.e. force the width and height "
605
  "above vs. maintaining proportions."
606
  msgstr ""
607
 
608
- #: includes/admin/default-settings.php:574
609
  msgid "Generate thumbnail sizes"
610
  msgstr ""
611
 
612
- #: includes/admin/default-settings.php:575
613
  msgid ""
614
  "If you select this option and Custom size is selected above, the plugin will "
615
  "register the image size with WordPress to create new thumbnails. Does not "
616
  "update old images as explained above."
617
  msgstr ""
618
 
619
- #: includes/admin/default-settings.php:581
620
  msgid "Thumbnail size attributes"
621
  msgstr ""
622
 
623
- #: includes/admin/default-settings.php:587
624
  #, php-format
625
  msgid "Use CSS to set the width and height: e.g. %s"
626
  msgstr ""
627
 
628
- #: includes/admin/default-settings.php:589
629
  #, php-format
630
  msgid "Use HTML attributes to set the width and height: e.g. %s"
631
  msgstr ""
632
 
633
- #: includes/admin/default-settings.php:590
634
  msgid ""
635
  "No width or height set. You will need to use external styles to force any "
636
  "width or height of your choice."
637
  msgstr ""
638
 
639
- #: includes/admin/default-settings.php:595
640
  msgid "Thumbnail meta field name"
641
  msgstr ""
642
 
643
- #: includes/admin/default-settings.php:596
644
  msgid ""
645
  "The value of this field should contain the URL of the image and can be set "
646
  "in the metabox in the Edit Post screen"
647
  msgstr ""
648
 
649
- #: includes/admin/default-settings.php:602
650
  msgid "Get first image"
651
  msgstr ""
652
 
653
- #: includes/admin/default-settings.php:603
654
  msgid ""
655
  "The plugin will fetch the first image in the post content if this is "
656
  "enabled. This can slow down the loading of your page if the first image in "
657
  "the followed posts is large in file-size."
658
  msgstr ""
659
 
660
- #: includes/admin/default-settings.php:609
661
  msgid "Use default thumbnail?"
662
  msgstr ""
663
 
664
- #: includes/admin/default-settings.php:610
665
  msgid ""
666
  "If checked, when no thumbnail is found, show a default one from the URL "
667
  "below. If not checked and no thumbnail is found, no image will be shown."
668
  msgstr ""
669
 
670
- #: includes/admin/default-settings.php:616 includes/admin/settings-page.php:763
671
  msgid "Default thumbnail"
672
  msgstr ""
673
 
674
- #: includes/admin/default-settings.php:617
675
  msgid ""
676
  "Enter the full URL of the image that you wish to display if no thumbnail is "
677
  "found. This image will be displayed below."
678
  msgstr ""
679
 
680
- #: includes/admin/default-settings.php:647
681
  msgid "Related Posts style"
682
  msgstr ""
683
 
684
- #: includes/admin/default-settings.php:655
685
  msgid "Custom CSS"
686
  msgstr ""
687
 
688
- #: includes/admin/default-settings.php:657
689
  #, php-format
690
  msgid ""
691
  "Do not include %3$sstyle%4$s tags. Check out the %1$sFAQ%2$s for available "
692
  "CSS classes to style."
693
  msgstr ""
694
 
695
- #: includes/admin/default-settings.php:687
696
  msgid "About this tab"
697
  msgstr ""
698
 
699
- #: includes/admin/default-settings.php:688
700
  msgid ""
701
  "Below options override the related posts settings for your blog feed. These "
702
  "only apply if you have selected to add related posts to Feeds in the General "
@@ -704,71 +715,71 @@ msgid ""
704
  "way to style the related posts in the feed."
705
  msgstr ""
706
 
707
- #: includes/admin/default-settings.php:808
708
  msgid "No styles"
709
  msgstr ""
710
 
711
- #: includes/admin/default-settings.php:809
712
  msgid "Select this option if you plan to add your own styles"
713
  msgstr ""
714
 
715
- #: includes/admin/default-settings.php:813
716
  msgid "Text only"
717
  msgstr ""
718
 
719
- #: includes/admin/default-settings.php:814
720
  msgid "Disable thumbnails and no longer include the default style sheet"
721
  msgstr ""
722
 
723
- #: includes/admin/default-settings.php:818
724
  msgid "Rounded thumbnails"
725
  msgstr ""
726
 
727
- #: includes/admin/default-settings.php:819
728
  msgid ""
729
  "Enabling this option will turn on the thumbnails. It will also turn off the "
730
  "display of the author, excerpt and date if already enabled. Disabling this "
731
  "option will not revert any settings."
732
  msgstr ""
733
 
734
- #: includes/admin/default-settings.php:823
735
  msgid "Masonry"
736
  msgstr ""
737
 
738
- #: includes/admin/default-settings.php:824
739
  msgid "Enables a masonry style layout similar to one made famous by Pinterest."
740
  msgstr ""
741
 
742
- #: includes/admin/default-settings.php:828
743
  msgid "Grid"
744
  msgstr ""
745
 
746
- #: includes/admin/default-settings.php:829
747
  msgid "Uses CSS Grid for display. Might not work on older browsers."
748
  msgstr ""
749
 
750
- #: includes/admin/default-settings.php:833
751
  msgid "Rounded thumbnails with CSS grid"
752
  msgstr ""
753
 
754
- #: includes/admin/default-settings.php:834
755
  msgid ""
756
  "Uses CSS grid. It will also turn off the display of the author, excerpt and "
757
  "date if already enabled. Disabling this option will not revert any settings."
758
  msgstr ""
759
 
760
- #: includes/admin/default-settings.php:857
761
- #: includes/blocks/related-posts/src/edit.js:241
762
  msgid "By relevance"
763
  msgstr ""
764
 
765
- #: includes/admin/default-settings.php:858
766
- #: includes/blocks/related-posts/src/edit.js:245
767
  msgid "Randomly"
768
  msgstr ""
769
 
770
- #: includes/admin/default-settings.php:859
771
- #: includes/blocks/related-posts/src/edit.js:249
772
  msgid "By date"
773
  msgstr ""
774
 
@@ -810,6 +821,10 @@ msgid ""
810
  "\"%1$s\" target=\"_blank\">knowledgebase articles</a>."
811
  msgstr ""
812
 
 
 
 
 
813
  #: includes/admin/help-tab.php:59
814
  msgid ""
815
  "This screen provides some tools that help maintain certain features of "
@@ -1193,117 +1208,122 @@ msgid ""
1193
  "block settings."
1194
  msgstr ""
1195
 
1196
- #: includes/blocks/related-posts/src/edit.js:106
1197
  msgid "Related Posts Settings"
1198
  msgstr ""
1199
 
1200
- #: includes/blocks/related-posts/src/edit.js:112
1201
  msgid "Show heading"
1202
  msgstr ""
1203
 
1204
- #: includes/blocks/related-posts/src/edit.js:115
1205
  msgid "Heading displayed"
1206
  msgstr ""
1207
 
1208
- #: includes/blocks/related-posts/src/edit.js:116
1209
  msgid "No Heading displayed"
1210
  msgstr ""
1211
 
1212
- #: includes/blocks/related-posts/src/edit.js:126
 
 
 
 
 
1213
  #: includes/modules/class-crp-rest-api.php:165
1214
  msgid "Number of posts"
1215
  msgstr ""
1216
 
1217
- #: includes/blocks/related-posts/src/edit.js:130
1218
  msgid "Maximum number of posts to display"
1219
  msgstr ""
1220
 
1221
- #: includes/blocks/related-posts/src/edit.js:139
1222
  #: includes/modules/class-crp-widget.php:91
1223
  msgid "Offset"
1224
  msgstr ""
1225
 
1226
- #: includes/blocks/related-posts/src/edit.js:143
1227
  msgid "Number of posts to skip from the top"
1228
  msgstr ""
1229
 
1230
- #: includes/blocks/related-posts/src/edit.js:152
1231
  msgid "Show excerpt"
1232
  msgstr ""
1233
 
1234
- #: includes/blocks/related-posts/src/edit.js:155
1235
  msgid "Excerpt displayed"
1236
  msgstr ""
1237
 
1238
- #: includes/blocks/related-posts/src/edit.js:156
1239
  msgid "No excerpt"
1240
  msgstr ""
1241
 
1242
- #: includes/blocks/related-posts/src/edit.js:170
1243
  msgid "\"by Author Name\" displayed"
1244
  msgstr ""
1245
 
1246
- #: includes/blocks/related-posts/src/edit.js:173
1247
  msgid "No author displayed"
1248
  msgstr ""
1249
 
1250
- #: includes/blocks/related-posts/src/edit.js:186
1251
  msgid "Date of post displayed"
1252
  msgstr ""
1253
 
1254
- #: includes/blocks/related-posts/src/edit.js:188
1255
  msgid "Date of post not displayed"
1256
  msgstr ""
1257
 
1258
- #: includes/blocks/related-posts/src/edit.js:200
1259
  msgid "Thumbnail option"
1260
  msgstr ""
1261
 
1262
- #: includes/blocks/related-posts/src/edit.js:210
1263
  msgid "Before title"
1264
  msgstr ""
1265
 
1266
- #: includes/blocks/related-posts/src/edit.js:214
1267
  msgid "After title"
1268
  msgstr ""
1269
 
1270
- #: includes/blocks/related-posts/src/edit.js:218
1271
  msgid "Only thumbnail"
1272
  msgstr ""
1273
 
1274
- #: includes/blocks/related-posts/src/edit.js:222
1275
  msgid "Only text"
1276
  msgstr ""
1277
 
1278
- #: includes/blocks/related-posts/src/edit.js:235
1279
  msgid "This option directly edits the query"
1280
  msgstr ""
1281
 
1282
- #: includes/blocks/related-posts/src/edit.js:262
1283
  msgid "Posts are shuffled on each load"
1284
  msgstr ""
1285
 
1286
- #: includes/blocks/related-posts/src/edit.js:266
1287
  msgid "Posts displayed based on above setting"
1288
  msgstr ""
1289
 
1290
- #: includes/blocks/related-posts/src/edit.js:278
1291
  msgid "Other attributes"
1292
  msgstr ""
1293
 
1294
- #: includes/blocks/related-posts/src/edit.js:282
1295
  msgid ""
1296
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1297
  "page&link_nofollow=1&exclude_post_ids=5,6"
1298
  msgstr ""
1299
 
1300
- #: includes/blocks/related-posts/src/edit.js:297
1301
  msgid ""
1302
  "This is a placeholder for the related posts block. Visit the front end of "
1303
  "your site to see the related posts."
1304
  msgstr ""
1305
 
1306
- #: includes/main-query.php:209
1307
  #, php-format
1308
  msgid ""
1309
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
@@ -1398,7 +1418,7 @@ msgstr ""
1398
  msgid "Only from categories (comma-separated list of term taxonomy IDs)"
1399
  msgstr ""
1400
 
1401
- #: includes/output-generator.php:239
1402
  msgid " by "
1403
  msgstr ""
1404
 
2
  msgstr ""
3
  "Project-Id-Version: Contextual Related Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2022-11-18 11:20+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza\n"
8
  "Language-Team: WebberZone\n"
15
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
16
  "translate_nooped_plural\n"
17
  "X-Poedit-Basepath: ..\n"
18
+ "X-Generator: Poedit 3.1\n"
19
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
+ #: includes/admin/admin.php:31 includes/blocks/related-posts/src/edit.js:315
23
  msgid "Contextual Related Posts"
24
  msgstr ""
25
 
32
  msgid "Contextual Related Posts Tools"
33
  msgstr ""
34
 
35
+ #: includes/admin/admin.php:41
36
+ msgid "Related Posts Tools"
37
  msgstr ""
38
 
39
  #: includes/admin/admin.php:69
209
  msgstr ""
210
 
211
  #: includes/admin/default-settings.php:190
212
+ #: includes/blocks/related-posts/src/edit.js:133
213
  msgid "Heading of posts"
214
  msgstr ""
215
 
244
  msgstr ""
245
 
246
  #: includes/admin/default-settings.php:217
247
+ #: includes/admin/default-settings.php:710
248
  msgid "Show post excerpt"
249
  msgstr ""
250
 
259
  msgstr ""
260
 
261
  #: includes/admin/default-settings.php:233
262
+ #: includes/blocks/related-posts/src/edit.js:203
263
  msgid "Show date"
264
  msgstr ""
265
 
270
  msgstr ""
271
 
272
  #: includes/admin/default-settings.php:240
273
+ #: includes/blocks/related-posts/src/edit.js:186
274
  msgid "Show author"
275
  msgstr ""
276
 
329
  msgstr ""
330
 
331
  #: includes/admin/default-settings.php:298
332
+ #: includes/admin/default-settings.php:478
333
  msgid ""
334
  "The field above has an autocomplete so simply start typing in the starting "
335
  "letters and it will prompt you with options. This field requires a specific "
357
  msgstr ""
358
 
359
  #: includes/admin/default-settings.php:363
360
+ #: includes/admin/default-settings.php:701
361
  msgid "Number of posts to display"
362
  msgstr ""
363
 
379
  msgstr ""
380
 
381
  #: includes/admin/default-settings.php:380
382
+ #: includes/blocks/related-posts/src/edit.js:251
383
  #: includes/modules/class-crp-widget.php:128
384
  msgid "Order posts"
385
  msgstr ""
386
 
387
  #: includes/admin/default-settings.php:388
388
+ #: includes/blocks/related-posts/src/edit.js:278
389
  msgid "Randomize posts"
390
  msgstr ""
391
 
493
  msgstr ""
494
 
495
  #: includes/admin/default-settings.php:462
496
+ msgid "Related Meta Keys"
497
  msgstr ""
498
 
499
  #: includes/admin/default-settings.php:463
500
  msgid ""
501
+ "Enter a comma-separated list of meta keys. Posts that match the same value "
502
+ "of the meta key are displayed before the other related posts"
503
+ msgstr ""
504
+
505
+ #: includes/admin/default-settings.php:470
506
+ msgid "Post/page IDs to exclude"
507
+ msgstr ""
508
+
509
+ #: includes/admin/default-settings.php:471
510
+ msgid ""
511
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
512
  "188,320,500"
513
  msgstr ""
514
 
515
+ #: includes/admin/default-settings.php:477
516
  msgid "Exclude Terms"
517
  msgstr ""
518
 
519
+ #: includes/admin/default-settings.php:486
520
  msgid "Exclude Term Taxonomy IDs"
521
  msgstr ""
522
 
523
+ #: includes/admin/default-settings.php:487
524
  msgid ""
525
  "This is a readonly field that is automatically populated based on the above "
526
  "input when the settings are saved. These might differ from the IDs visible "
528
  "the term_taxonomy_id which is unique to this taxonomy."
529
  msgstr ""
530
 
531
+ #: includes/admin/default-settings.php:494
532
  msgid "Disable contextual matching"
533
  msgstr ""
534
 
535
+ #: includes/admin/default-settings.php:495
536
  msgid ""
537
  "Selecting this option will turn off contextual matching. This is only useful "
538
  "if you activate the option: \"Only from same\" from the General tab. "
540
  "with no relevance."
541
  msgstr ""
542
 
543
+ #: includes/admin/default-settings.php:501
544
  msgid "Disable contextual matching ONLY on attachments and custom post types"
545
  msgstr ""
546
 
547
+ #: includes/admin/default-settings.php:502
548
  msgid ""
549
  "Applies only if the previous option is checked. Selecting this option will "
550
  "retain contextual matching for posts and pages but disable this on any "
551
  "custom post types."
552
  msgstr ""
553
 
554
+ #: includes/admin/default-settings.php:531
555
+ #: includes/admin/default-settings.php:717
556
+ #: includes/blocks/related-posts/src/edit.js:224
557
  msgid "Location of the post thumbnail"
558
  msgstr ""
559
 
560
+ #: includes/admin/default-settings.php:536
561
+ #: includes/admin/default-settings.php:722
562
  msgid "Display thumbnails inline with posts, before title"
563
  msgstr ""
564
 
565
+ #: includes/admin/default-settings.php:537
566
+ #: includes/admin/default-settings.php:723
567
  msgid "Display thumbnails inline with posts, after title"
568
  msgstr ""
569
 
570
+ #: includes/admin/default-settings.php:538
571
+ #: includes/admin/default-settings.php:724
572
  msgid "Display only thumbnails, no text"
573
  msgstr ""
574
 
575
+ #: includes/admin/default-settings.php:539
576
+ #: includes/admin/default-settings.php:725
577
  msgid "Do not display thumbnails, only text"
578
  msgstr ""
579
 
580
+ #: includes/admin/default-settings.php:544
581
  msgid "Thumbnail size"
582
  msgstr ""
583
 
584
+ #: includes/admin/default-settings.php:545
585
  msgid ""
586
  "You can choose from existing image sizes above or create a custom size. If "
587
  "you have chosen Custom size above, then enter the width, height and crop "
589
  "width and/or height below, existing images will not be automatically resized."
590
  msgstr ""
591
 
592
+ #: includes/admin/default-settings.php:547
593
  #, php-format
594
  msgid "I recommend using %1$s or %2$s to regenerate all image sizes."
595
  msgstr ""
596
 
597
+ #: includes/admin/default-settings.php:557
598
+ #: includes/admin/default-settings.php:730
599
  #: includes/modules/class-crp-widget.php:125
600
  msgid "Thumbnail width"
601
  msgstr ""
602
 
603
+ #: includes/admin/default-settings.php:566
604
+ #: includes/admin/default-settings.php:739
605
  #: includes/modules/class-crp-widget.php:120
606
  msgid "Thumbnail height"
607
  msgstr ""
608
 
609
+ #: includes/admin/default-settings.php:575
610
  msgid "Hard crop thumbnails"
611
  msgstr ""
612
 
613
+ #: includes/admin/default-settings.php:576
614
  msgid ""
615
  "Check this box to hard crop the thumbnails. i.e. force the width and height "
616
  "above vs. maintaining proportions."
617
  msgstr ""
618
 
619
+ #: includes/admin/default-settings.php:582
620
  msgid "Generate thumbnail sizes"
621
  msgstr ""
622
 
623
+ #: includes/admin/default-settings.php:583
624
  msgid ""
625
  "If you select this option and Custom size is selected above, the plugin will "
626
  "register the image size with WordPress to create new thumbnails. Does not "
627
  "update old images as explained above."
628
  msgstr ""
629
 
630
+ #: includes/admin/default-settings.php:589
631
  msgid "Thumbnail size attributes"
632
  msgstr ""
633
 
634
+ #: includes/admin/default-settings.php:595
635
  #, php-format
636
  msgid "Use CSS to set the width and height: e.g. %s"
637
  msgstr ""
638
 
639
+ #: includes/admin/default-settings.php:597
640
  #, php-format
641
  msgid "Use HTML attributes to set the width and height: e.g. %s"
642
  msgstr ""
643
 
644
+ #: includes/admin/default-settings.php:598
645
  msgid ""
646
  "No width or height set. You will need to use external styles to force any "
647
  "width or height of your choice."
648
  msgstr ""
649
 
650
+ #: includes/admin/default-settings.php:603
651
  msgid "Thumbnail meta field name"
652
  msgstr ""
653
 
654
+ #: includes/admin/default-settings.php:604
655
  msgid ""
656
  "The value of this field should contain the URL of the image and can be set "
657
  "in the metabox in the Edit Post screen"
658
  msgstr ""
659
 
660
+ #: includes/admin/default-settings.php:610
661
  msgid "Get first image"
662
  msgstr ""
663
 
664
+ #: includes/admin/default-settings.php:611
665
  msgid ""
666
  "The plugin will fetch the first image in the post content if this is "
667
  "enabled. This can slow down the loading of your page if the first image in "
668
  "the followed posts is large in file-size."
669
  msgstr ""
670
 
671
+ #: includes/admin/default-settings.php:617
672
  msgid "Use default thumbnail?"
673
  msgstr ""
674
 
675
+ #: includes/admin/default-settings.php:618
676
  msgid ""
677
  "If checked, when no thumbnail is found, show a default one from the URL "
678
  "below. If not checked and no thumbnail is found, no image will be shown."
679
  msgstr ""
680
 
681
+ #: includes/admin/default-settings.php:624 includes/admin/settings-page.php:763
682
  msgid "Default thumbnail"
683
  msgstr ""
684
 
685
+ #: includes/admin/default-settings.php:625
686
  msgid ""
687
  "Enter the full URL of the image that you wish to display if no thumbnail is "
688
  "found. This image will be displayed below."
689
  msgstr ""
690
 
691
+ #: includes/admin/default-settings.php:655
692
  msgid "Related Posts style"
693
  msgstr ""
694
 
695
+ #: includes/admin/default-settings.php:663
696
  msgid "Custom CSS"
697
  msgstr ""
698
 
699
+ #: includes/admin/default-settings.php:665
700
  #, php-format
701
  msgid ""
702
  "Do not include %3$sstyle%4$s tags. Check out the %1$sFAQ%2$s for available "
703
  "CSS classes to style."
704
  msgstr ""
705
 
706
+ #: includes/admin/default-settings.php:695
707
  msgid "About this tab"
708
  msgstr ""
709
 
710
+ #: includes/admin/default-settings.php:696
711
  msgid ""
712
  "Below options override the related posts settings for your blog feed. These "
713
  "only apply if you have selected to add related posts to Feeds in the General "
715
  "way to style the related posts in the feed."
716
  msgstr ""
717
 
718
+ #: includes/admin/default-settings.php:816
719
  msgid "No styles"
720
  msgstr ""
721
 
722
+ #: includes/admin/default-settings.php:817
723
  msgid "Select this option if you plan to add your own styles"
724
  msgstr ""
725
 
726
+ #: includes/admin/default-settings.php:821
727
  msgid "Text only"
728
  msgstr ""
729
 
730
+ #: includes/admin/default-settings.php:822
731
  msgid "Disable thumbnails and no longer include the default style sheet"
732
  msgstr ""
733
 
734
+ #: includes/admin/default-settings.php:826
735
  msgid "Rounded thumbnails"
736
  msgstr ""
737
 
738
+ #: includes/admin/default-settings.php:827
739
  msgid ""
740
  "Enabling this option will turn on the thumbnails. It will also turn off the "
741
  "display of the author, excerpt and date if already enabled. Disabling this "
742
  "option will not revert any settings."
743
  msgstr ""
744
 
745
+ #: includes/admin/default-settings.php:831
746
  msgid "Masonry"
747
  msgstr ""
748
 
749
+ #: includes/admin/default-settings.php:832
750
  msgid "Enables a masonry style layout similar to one made famous by Pinterest."
751
  msgstr ""
752
 
753
+ #: includes/admin/default-settings.php:836
754
  msgid "Grid"
755
  msgstr ""
756
 
757
+ #: includes/admin/default-settings.php:837
758
  msgid "Uses CSS Grid for display. Might not work on older browsers."
759
  msgstr ""
760
 
761
+ #: includes/admin/default-settings.php:841
762
  msgid "Rounded thumbnails with CSS grid"
763
  msgstr ""
764
 
765
+ #: includes/admin/default-settings.php:842
766
  msgid ""
767
  "Uses CSS grid. It will also turn off the display of the author, excerpt and "
768
  "date if already enabled. Disabling this option will not revert any settings."
769
  msgstr ""
770
 
771
+ #: includes/admin/default-settings.php:865
772
+ #: includes/blocks/related-posts/src/edit.js:261
773
  msgid "By relevance"
774
  msgstr ""
775
 
776
+ #: includes/admin/default-settings.php:866
777
+ #: includes/blocks/related-posts/src/edit.js:265
778
  msgid "Randomly"
779
  msgstr ""
780
 
781
+ #: includes/admin/default-settings.php:867
782
+ #: includes/blocks/related-posts/src/edit.js:269
783
  msgid "By date"
784
  msgstr ""
785
 
821
  "\"%1$s\" target=\"_blank\">knowledgebase articles</a>."
822
  msgstr ""
823
 
824
+ #: includes/admin/help-tab.php:57
825
+ msgid "Tools"
826
+ msgstr ""
827
+
828
  #: includes/admin/help-tab.php:59
829
  msgid ""
830
  "This screen provides some tools that help maintain certain features of "
1208
  "block settings."
1209
  msgstr ""
1210
 
1211
+ #: includes/blocks/related-posts/src/edit.js:113
1212
  msgid "Related Posts Settings"
1213
  msgstr ""
1214
 
1215
+ #: includes/blocks/related-posts/src/edit.js:119
1216
  msgid "Show heading"
1217
  msgstr ""
1218
 
1219
+ #: includes/blocks/related-posts/src/edit.js:122
1220
  msgid "Heading displayed"
1221
  msgstr ""
1222
 
1223
+ #: includes/blocks/related-posts/src/edit.js:123
1224
  msgid "No Heading displayed"
1225
  msgstr ""
1226
 
1227
+ #: includes/blocks/related-posts/src/edit.js:137
1228
+ msgid ""
1229
+ "Displayed before the list of the posts as a master heading. HTML allowed."
1230
+ msgstr ""
1231
+
1232
+ #: includes/blocks/related-posts/src/edit.js:146
1233
  #: includes/modules/class-crp-rest-api.php:165
1234
  msgid "Number of posts"
1235
  msgstr ""
1236
 
1237
+ #: includes/blocks/related-posts/src/edit.js:150
1238
  msgid "Maximum number of posts to display"
1239
  msgstr ""
1240
 
1241
+ #: includes/blocks/related-posts/src/edit.js:159
1242
  #: includes/modules/class-crp-widget.php:91
1243
  msgid "Offset"
1244
  msgstr ""
1245
 
1246
+ #: includes/blocks/related-posts/src/edit.js:163
1247
  msgid "Number of posts to skip from the top"
1248
  msgstr ""
1249
 
1250
+ #: includes/blocks/related-posts/src/edit.js:172
1251
  msgid "Show excerpt"
1252
  msgstr ""
1253
 
1254
+ #: includes/blocks/related-posts/src/edit.js:175
1255
  msgid "Excerpt displayed"
1256
  msgstr ""
1257
 
1258
+ #: includes/blocks/related-posts/src/edit.js:176
1259
  msgid "No excerpt"
1260
  msgstr ""
1261
 
1262
+ #: includes/blocks/related-posts/src/edit.js:190
1263
  msgid "\"by Author Name\" displayed"
1264
  msgstr ""
1265
 
1266
+ #: includes/blocks/related-posts/src/edit.js:193
1267
  msgid "No author displayed"
1268
  msgstr ""
1269
 
1270
+ #: includes/blocks/related-posts/src/edit.js:206
1271
  msgid "Date of post displayed"
1272
  msgstr ""
1273
 
1274
+ #: includes/blocks/related-posts/src/edit.js:208
1275
  msgid "Date of post not displayed"
1276
  msgstr ""
1277
 
1278
+ #: includes/blocks/related-posts/src/edit.js:220
1279
  msgid "Thumbnail option"
1280
  msgstr ""
1281
 
1282
+ #: includes/blocks/related-posts/src/edit.js:230
1283
  msgid "Before title"
1284
  msgstr ""
1285
 
1286
+ #: includes/blocks/related-posts/src/edit.js:234
1287
  msgid "After title"
1288
  msgstr ""
1289
 
1290
+ #: includes/blocks/related-posts/src/edit.js:238
1291
  msgid "Only thumbnail"
1292
  msgstr ""
1293
 
1294
+ #: includes/blocks/related-posts/src/edit.js:242
1295
  msgid "Only text"
1296
  msgstr ""
1297
 
1298
+ #: includes/blocks/related-posts/src/edit.js:255
1299
  msgid "This option directly edits the query"
1300
  msgstr ""
1301
 
1302
+ #: includes/blocks/related-posts/src/edit.js:282
1303
  msgid "Posts are shuffled on each load"
1304
  msgstr ""
1305
 
1306
+ #: includes/blocks/related-posts/src/edit.js:286
1307
  msgid "Posts displayed based on above setting"
1308
  msgstr ""
1309
 
1310
+ #: includes/blocks/related-posts/src/edit.js:298
1311
  msgid "Other attributes"
1312
  msgstr ""
1313
 
1314
+ #: includes/blocks/related-posts/src/edit.js:302
1315
  msgid ""
1316
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1317
  "page&link_nofollow=1&exclude_post_ids=5,6"
1318
  msgstr ""
1319
 
1320
+ #: includes/blocks/related-posts/src/edit.js:317
1321
  msgid ""
1322
  "This is a placeholder for the related posts block. Visit the front end of "
1323
  "your site to see the related posts."
1324
  msgstr ""
1325
 
1326
+ #: includes/main-query.php:213
1327
  #, php-format
1328
  msgid ""
1329
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
1418
  msgid "Only from categories (comma-separated list of term taxonomy IDs)"
1419
  msgstr ""
1420
 
1421
+ #: includes/output-generator.php:240
1422
  msgid " by "
1423
  msgstr ""
1424
 
languages/contextual-related-posts-en_US.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Contextual Related Posts\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2022-05-03 19:27+0100\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza\n"
9
  "Language-Team: WebberZone\n"
@@ -16,11 +16,11 @@ msgstr ""
16
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
17
  "translate_nooped_plural\n"
18
  "X-Poedit-Basepath: ..\n"
19
- "X-Generator: Poedit 3.0\n"
20
  "X-Poedit-SourceCharset: UTF-8\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
 
23
- #: includes/admin/admin.php:31 includes/blocks/related-posts/src/edit.js:295
24
  msgid "Contextual Related Posts"
25
  msgstr ""
26
 
@@ -33,8 +33,8 @@ msgstr ""
33
  msgid "Contextual Related Posts Tools"
34
  msgstr ""
35
 
36
- #: includes/admin/admin.php:41 includes/admin/help-tab.php:57
37
- msgid "Tools"
38
  msgstr ""
39
 
40
  #: includes/admin/admin.php:69
@@ -210,6 +210,7 @@ msgid ""
210
  msgstr ""
211
 
212
  #: includes/admin/default-settings.php:190
 
213
  msgid "Heading of posts"
214
  msgstr ""
215
 
@@ -244,7 +245,7 @@ msgid "No related posts found"
244
  msgstr ""
245
 
246
  #: includes/admin/default-settings.php:217
247
- #: includes/admin/default-settings.php:702
248
  msgid "Show post excerpt"
249
  msgstr ""
250
 
@@ -259,7 +260,7 @@ msgid "Length of excerpt (in words)"
259
  msgstr ""
260
 
261
  #: includes/admin/default-settings.php:233
262
- #: includes/blocks/related-posts/src/edit.js:183
263
  msgid "Show date"
264
  msgstr ""
265
 
@@ -270,7 +271,7 @@ msgid ""
270
  msgstr ""
271
 
272
  #: includes/admin/default-settings.php:240
273
- #: includes/blocks/related-posts/src/edit.js:166
274
  msgid "Show author"
275
  msgstr ""
276
 
@@ -329,7 +330,7 @@ msgid "Exclude on Terms"
329
  msgstr ""
330
 
331
  #: includes/admin/default-settings.php:298
332
- #: includes/admin/default-settings.php:470
333
  msgid ""
334
  "The field above has an autocomplete so simply start typing in the starting "
335
  "letters and it will prompt you with options. This field requires a specific "
@@ -357,7 +358,7 @@ msgid "After each list item"
357
  msgstr ""
358
 
359
  #: includes/admin/default-settings.php:363
360
- #: includes/admin/default-settings.php:693
361
  msgid "Number of posts to display"
362
  msgstr ""
363
 
@@ -379,13 +380,13 @@ msgid ""
379
  msgstr ""
380
 
381
  #: includes/admin/default-settings.php:380
382
- #: includes/blocks/related-posts/src/edit.js:231
383
  #: includes/modules/class-crp-widget.php:128
384
  msgid "Order posts"
385
  msgstr ""
386
 
387
  #: includes/admin/default-settings.php:388
388
- #: includes/blocks/related-posts/src/edit.js:258
389
  msgid "Randomize posts"
390
  msgstr ""
391
 
@@ -493,24 +494,34 @@ msgid ""
493
  msgstr ""
494
 
495
  #: includes/admin/default-settings.php:462
496
- msgid "Post/page IDs to exclude"
497
  msgstr ""
498
 
499
  #: includes/admin/default-settings.php:463
500
  msgid ""
 
 
 
 
 
 
 
 
 
 
501
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
502
  "188,320,500"
503
  msgstr ""
504
 
505
- #: includes/admin/default-settings.php:469
506
  msgid "Exclude Terms"
507
  msgstr ""
508
 
509
- #: includes/admin/default-settings.php:478
510
  msgid "Exclude Term Taxonomy IDs"
511
  msgstr ""
512
 
513
- #: includes/admin/default-settings.php:479
514
  msgid ""
515
  "This is a readonly field that is automatically populated based on the above "
516
  "input when the settings are saved. These might differ from the IDs visible "
@@ -518,11 +529,11 @@ msgid ""
518
  "the term_taxonomy_id which is unique to this taxonomy."
519
  msgstr ""
520
 
521
- #: includes/admin/default-settings.php:486
522
  msgid "Disable contextual matching"
523
  msgstr ""
524
 
525
- #: includes/admin/default-settings.php:487
526
  msgid ""
527
  "Selecting this option will turn off contextual matching. This is only useful "
528
  "if you activate the option: \"Only from same\" from the General tab. "
@@ -530,48 +541,48 @@ msgid ""
530
  "with no relevance."
531
  msgstr ""
532
 
533
- #: includes/admin/default-settings.php:493
534
  msgid "Disable contextual matching ONLY on attachments and custom post types"
535
  msgstr ""
536
 
537
- #: includes/admin/default-settings.php:494
538
  msgid ""
539
  "Applies only if the previous option is checked. Selecting this option will "
540
  "retain contextual matching for posts and pages but disable this on any "
541
  "custom post types."
542
  msgstr ""
543
 
544
- #: includes/admin/default-settings.php:523
545
- #: includes/admin/default-settings.php:709
546
- #: includes/blocks/related-posts/src/edit.js:204
547
  msgid "Location of the post thumbnail"
548
  msgstr ""
549
 
550
- #: includes/admin/default-settings.php:528
551
- #: includes/admin/default-settings.php:714
552
  msgid "Display thumbnails inline with posts, before title"
553
  msgstr ""
554
 
555
- #: includes/admin/default-settings.php:529
556
- #: includes/admin/default-settings.php:715
557
  msgid "Display thumbnails inline with posts, after title"
558
  msgstr ""
559
 
560
- #: includes/admin/default-settings.php:530
561
- #: includes/admin/default-settings.php:716
562
  msgid "Display only thumbnails, no text"
563
  msgstr ""
564
 
565
- #: includes/admin/default-settings.php:531
566
- #: includes/admin/default-settings.php:717
567
  msgid "Do not display thumbnails, only text"
568
  msgstr ""
569
 
570
- #: includes/admin/default-settings.php:536
571
  msgid "Thumbnail size"
572
  msgstr ""
573
 
574
- #: includes/admin/default-settings.php:537
575
  msgid ""
576
  "You can choose from existing image sizes above or create a custom size. If "
577
  "you have chosen Custom size above, then enter the width, height and crop "
@@ -579,125 +590,125 @@ msgid ""
579
  "width and/or height below, existing images will not be automatically resized."
580
  msgstr ""
581
 
582
- #: includes/admin/default-settings.php:539
583
  #, php-format
584
  msgid "I recommend using %1$s or %2$s to regenerate all image sizes."
585
  msgstr ""
586
 
587
- #: includes/admin/default-settings.php:549
588
- #: includes/admin/default-settings.php:722
589
  #: includes/modules/class-crp-widget.php:125
590
  msgid "Thumbnail width"
591
  msgstr ""
592
 
593
- #: includes/admin/default-settings.php:558
594
- #: includes/admin/default-settings.php:731
595
  #: includes/modules/class-crp-widget.php:120
596
  msgid "Thumbnail height"
597
  msgstr ""
598
 
599
- #: includes/admin/default-settings.php:567
600
  msgid "Hard crop thumbnails"
601
  msgstr ""
602
 
603
- #: includes/admin/default-settings.php:568
604
  msgid ""
605
  "Check this box to hard crop the thumbnails. i.e. force the width and height "
606
  "above vs. maintaining proportions."
607
  msgstr ""
608
 
609
- #: includes/admin/default-settings.php:574
610
  msgid "Generate thumbnail sizes"
611
  msgstr ""
612
 
613
- #: includes/admin/default-settings.php:575
614
  msgid ""
615
  "If you select this option and Custom size is selected above, the plugin will "
616
  "register the image size with WordPress to create new thumbnails. Does not "
617
  "update old images as explained above."
618
  msgstr ""
619
 
620
- #: includes/admin/default-settings.php:581
621
  msgid "Thumbnail size attributes"
622
  msgstr ""
623
 
624
- #: includes/admin/default-settings.php:587
625
  #, php-format
626
  msgid "Use CSS to set the width and height: e.g. %s"
627
  msgstr ""
628
 
629
- #: includes/admin/default-settings.php:589
630
  #, php-format
631
  msgid "Use HTML attributes to set the width and height: e.g. %s"
632
  msgstr ""
633
 
634
- #: includes/admin/default-settings.php:590
635
  msgid ""
636
  "No width or height set. You will need to use external styles to force any "
637
  "width or height of your choice."
638
  msgstr ""
639
 
640
- #: includes/admin/default-settings.php:595
641
  msgid "Thumbnail meta field name"
642
  msgstr ""
643
 
644
- #: includes/admin/default-settings.php:596
645
  msgid ""
646
  "The value of this field should contain the URL of the image and can be set "
647
  "in the metabox in the Edit Post screen"
648
  msgstr ""
649
 
650
- #: includes/admin/default-settings.php:602
651
  msgid "Get first image"
652
  msgstr ""
653
 
654
- #: includes/admin/default-settings.php:603
655
  msgid ""
656
  "The plugin will fetch the first image in the post content if this is "
657
  "enabled. This can slow down the loading of your page if the first image in "
658
  "the followed posts is large in file-size."
659
  msgstr ""
660
 
661
- #: includes/admin/default-settings.php:609
662
  msgid "Use default thumbnail?"
663
  msgstr ""
664
 
665
- #: includes/admin/default-settings.php:610
666
  msgid ""
667
  "If checked, when no thumbnail is found, show a default one from the URL "
668
  "below. If not checked and no thumbnail is found, no image will be shown."
669
  msgstr ""
670
 
671
- #: includes/admin/default-settings.php:616 includes/admin/settings-page.php:763
672
  msgid "Default thumbnail"
673
  msgstr ""
674
 
675
- #: includes/admin/default-settings.php:617
676
  msgid ""
677
  "Enter the full URL of the image that you wish to display if no thumbnail is "
678
  "found. This image will be displayed below."
679
  msgstr ""
680
 
681
- #: includes/admin/default-settings.php:647
682
  msgid "Related Posts style"
683
  msgstr ""
684
 
685
- #: includes/admin/default-settings.php:655
686
  msgid "Custom CSS"
687
  msgstr ""
688
 
689
- #: includes/admin/default-settings.php:657
690
  #, php-format
691
  msgid ""
692
  "Do not include %3$sstyle%4$s tags. Check out the %1$sFAQ%2$s for available "
693
  "CSS classes to style."
694
  msgstr ""
695
 
696
- #: includes/admin/default-settings.php:687
697
  msgid "About this tab"
698
  msgstr ""
699
 
700
- #: includes/admin/default-settings.php:688
701
  msgid ""
702
  "Below options override the related posts settings for your blog feed. These "
703
  "only apply if you have selected to add related posts to Feeds in the General "
@@ -705,71 +716,71 @@ msgid ""
705
  "way to style the related posts in the feed."
706
  msgstr ""
707
 
708
- #: includes/admin/default-settings.php:808
709
  msgid "No styles"
710
  msgstr ""
711
 
712
- #: includes/admin/default-settings.php:809
713
  msgid "Select this option if you plan to add your own styles"
714
  msgstr ""
715
 
716
- #: includes/admin/default-settings.php:813
717
  msgid "Text only"
718
  msgstr ""
719
 
720
- #: includes/admin/default-settings.php:814
721
  msgid "Disable thumbnails and no longer include the default style sheet"
722
  msgstr ""
723
 
724
- #: includes/admin/default-settings.php:818
725
  msgid "Rounded thumbnails"
726
  msgstr ""
727
 
728
- #: includes/admin/default-settings.php:819
729
  msgid ""
730
  "Enabling this option will turn on the thumbnails. It will also turn off the "
731
  "display of the author, excerpt and date if already enabled. Disabling this "
732
  "option will not revert any settings."
733
  msgstr ""
734
 
735
- #: includes/admin/default-settings.php:823
736
  msgid "Masonry"
737
  msgstr ""
738
 
739
- #: includes/admin/default-settings.php:824
740
  msgid "Enables a masonry style layout similar to one made famous by Pinterest."
741
  msgstr ""
742
 
743
- #: includes/admin/default-settings.php:828
744
  msgid "Grid"
745
  msgstr ""
746
 
747
- #: includes/admin/default-settings.php:829
748
  msgid "Uses CSS Grid for display. Might not work on older browsers."
749
  msgstr ""
750
 
751
- #: includes/admin/default-settings.php:833
752
  msgid "Rounded thumbnails with CSS grid"
753
  msgstr ""
754
 
755
- #: includes/admin/default-settings.php:834
756
  msgid ""
757
  "Uses CSS grid. It will also turn off the display of the author, excerpt and "
758
  "date if already enabled. Disabling this option will not revert any settings."
759
  msgstr ""
760
 
761
- #: includes/admin/default-settings.php:857
762
- #: includes/blocks/related-posts/src/edit.js:241
763
  msgid "By relevance"
764
  msgstr ""
765
 
766
- #: includes/admin/default-settings.php:858
767
- #: includes/blocks/related-posts/src/edit.js:245
768
  msgid "Randomly"
769
  msgstr ""
770
 
771
- #: includes/admin/default-settings.php:859
772
- #: includes/blocks/related-posts/src/edit.js:249
773
  msgid "By date"
774
  msgstr ""
775
 
@@ -811,6 +822,10 @@ msgid ""
811
  "\"%1$s\" target=\"_blank\">knowledgebase articles</a>."
812
  msgstr ""
813
 
 
 
 
 
814
  #: includes/admin/help-tab.php:59
815
  msgid ""
816
  "This screen provides some tools that help maintain certain features of "
@@ -1194,117 +1209,122 @@ msgid ""
1194
  "block settings."
1195
  msgstr ""
1196
 
1197
- #: includes/blocks/related-posts/src/edit.js:106
1198
  msgid "Related Posts Settings"
1199
  msgstr ""
1200
 
1201
- #: includes/blocks/related-posts/src/edit.js:112
1202
  msgid "Show heading"
1203
  msgstr ""
1204
 
1205
- #: includes/blocks/related-posts/src/edit.js:115
1206
  msgid "Heading displayed"
1207
  msgstr ""
1208
 
1209
- #: includes/blocks/related-posts/src/edit.js:116
1210
  msgid "No Heading displayed"
1211
  msgstr ""
1212
 
1213
- #: includes/blocks/related-posts/src/edit.js:126
 
 
 
 
 
1214
  #: includes/modules/class-crp-rest-api.php:165
1215
  msgid "Number of posts"
1216
  msgstr ""
1217
 
1218
- #: includes/blocks/related-posts/src/edit.js:130
1219
  msgid "Maximum number of posts to display"
1220
  msgstr ""
1221
 
1222
- #: includes/blocks/related-posts/src/edit.js:139
1223
  #: includes/modules/class-crp-widget.php:91
1224
  msgid "Offset"
1225
  msgstr ""
1226
 
1227
- #: includes/blocks/related-posts/src/edit.js:143
1228
  msgid "Number of posts to skip from the top"
1229
  msgstr ""
1230
 
1231
- #: includes/blocks/related-posts/src/edit.js:152
1232
  msgid "Show excerpt"
1233
  msgstr ""
1234
 
1235
- #: includes/blocks/related-posts/src/edit.js:155
1236
  msgid "Excerpt displayed"
1237
  msgstr ""
1238
 
1239
- #: includes/blocks/related-posts/src/edit.js:156
1240
  msgid "No excerpt"
1241
  msgstr ""
1242
 
1243
- #: includes/blocks/related-posts/src/edit.js:170
1244
  msgid "\"by Author Name\" displayed"
1245
  msgstr ""
1246
 
1247
- #: includes/blocks/related-posts/src/edit.js:173
1248
  msgid "No author displayed"
1249
  msgstr ""
1250
 
1251
- #: includes/blocks/related-posts/src/edit.js:186
1252
  msgid "Date of post displayed"
1253
  msgstr ""
1254
 
1255
- #: includes/blocks/related-posts/src/edit.js:188
1256
  msgid "Date of post not displayed"
1257
  msgstr ""
1258
 
1259
- #: includes/blocks/related-posts/src/edit.js:200
1260
  msgid "Thumbnail option"
1261
  msgstr ""
1262
 
1263
- #: includes/blocks/related-posts/src/edit.js:210
1264
  msgid "Before title"
1265
  msgstr ""
1266
 
1267
- #: includes/blocks/related-posts/src/edit.js:214
1268
  msgid "After title"
1269
  msgstr ""
1270
 
1271
- #: includes/blocks/related-posts/src/edit.js:218
1272
  msgid "Only thumbnail"
1273
  msgstr ""
1274
 
1275
- #: includes/blocks/related-posts/src/edit.js:222
1276
  msgid "Only text"
1277
  msgstr ""
1278
 
1279
- #: includes/blocks/related-posts/src/edit.js:235
1280
  msgid "This option directly edits the query"
1281
  msgstr ""
1282
 
1283
- #: includes/blocks/related-posts/src/edit.js:262
1284
  msgid "Posts are shuffled on each load"
1285
  msgstr ""
1286
 
1287
- #: includes/blocks/related-posts/src/edit.js:266
1288
  msgid "Posts displayed based on above setting"
1289
  msgstr ""
1290
 
1291
- #: includes/blocks/related-posts/src/edit.js:278
1292
  msgid "Other attributes"
1293
  msgstr ""
1294
 
1295
- #: includes/blocks/related-posts/src/edit.js:282
1296
  msgid ""
1297
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1298
  "page&link_nofollow=1&exclude_post_ids=5,6"
1299
  msgstr ""
1300
 
1301
- #: includes/blocks/related-posts/src/edit.js:297
1302
  msgid ""
1303
  "This is a placeholder for the related posts block. Visit the front end of "
1304
  "your site to see the related posts."
1305
  msgstr ""
1306
 
1307
- #: includes/main-query.php:209
1308
  #, php-format
1309
  msgid ""
1310
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
@@ -1399,7 +1419,7 @@ msgstr ""
1399
  msgid "Only from categories (comma-separated list of term taxonomy IDs)"
1400
  msgstr ""
1401
 
1402
- #: includes/output-generator.php:239
1403
  msgid " by "
1404
  msgstr ""
1405
 
3
  msgstr ""
4
  "Project-Id-Version: Contextual Related Posts\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2022-11-18 11:20+0000\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza\n"
9
  "Language-Team: WebberZone\n"
16
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
17
  "translate_nooped_plural\n"
18
  "X-Poedit-Basepath: ..\n"
19
+ "X-Generator: Poedit 3.1\n"
20
  "X-Poedit-SourceCharset: UTF-8\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
 
23
+ #: includes/admin/admin.php:31 includes/blocks/related-posts/src/edit.js:315
24
  msgid "Contextual Related Posts"
25
  msgstr ""
26
 
33
  msgid "Contextual Related Posts Tools"
34
  msgstr ""
35
 
36
+ #: includes/admin/admin.php:41
37
+ msgid "Related Posts Tools"
38
  msgstr ""
39
 
40
  #: includes/admin/admin.php:69
210
  msgstr ""
211
 
212
  #: includes/admin/default-settings.php:190
213
+ #: includes/blocks/related-posts/src/edit.js:133
214
  msgid "Heading of posts"
215
  msgstr ""
216
 
245
  msgstr ""
246
 
247
  #: includes/admin/default-settings.php:217
248
+ #: includes/admin/default-settings.php:710
249
  msgid "Show post excerpt"
250
  msgstr ""
251
 
260
  msgstr ""
261
 
262
  #: includes/admin/default-settings.php:233
263
+ #: includes/blocks/related-posts/src/edit.js:203
264
  msgid "Show date"
265
  msgstr ""
266
 
271
  msgstr ""
272
 
273
  #: includes/admin/default-settings.php:240
274
+ #: includes/blocks/related-posts/src/edit.js:186
275
  msgid "Show author"
276
  msgstr ""
277
 
330
  msgstr ""
331
 
332
  #: includes/admin/default-settings.php:298
333
+ #: includes/admin/default-settings.php:478
334
  msgid ""
335
  "The field above has an autocomplete so simply start typing in the starting "
336
  "letters and it will prompt you with options. This field requires a specific "
358
  msgstr ""
359
 
360
  #: includes/admin/default-settings.php:363
361
+ #: includes/admin/default-settings.php:701
362
  msgid "Number of posts to display"
363
  msgstr ""
364
 
380
  msgstr ""
381
 
382
  #: includes/admin/default-settings.php:380
383
+ #: includes/blocks/related-posts/src/edit.js:251
384
  #: includes/modules/class-crp-widget.php:128
385
  msgid "Order posts"
386
  msgstr ""
387
 
388
  #: includes/admin/default-settings.php:388
389
+ #: includes/blocks/related-posts/src/edit.js:278
390
  msgid "Randomize posts"
391
  msgstr ""
392
 
494
  msgstr ""
495
 
496
  #: includes/admin/default-settings.php:462
497
+ msgid "Related Meta Keys"
498
  msgstr ""
499
 
500
  #: includes/admin/default-settings.php:463
501
  msgid ""
502
+ "Enter a comma-separated list of meta keys. Posts that match the same value "
503
+ "of the meta key are displayed before the other related posts"
504
+ msgstr ""
505
+
506
+ #: includes/admin/default-settings.php:470
507
+ msgid "Post/page IDs to exclude"
508
+ msgstr ""
509
+
510
+ #: includes/admin/default-settings.php:471
511
+ msgid ""
512
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
513
  "188,320,500"
514
  msgstr ""
515
 
516
+ #: includes/admin/default-settings.php:477
517
  msgid "Exclude Terms"
518
  msgstr ""
519
 
520
+ #: includes/admin/default-settings.php:486
521
  msgid "Exclude Term Taxonomy IDs"
522
  msgstr ""
523
 
524
+ #: includes/admin/default-settings.php:487
525
  msgid ""
526
  "This is a readonly field that is automatically populated based on the above "
527
  "input when the settings are saved. These might differ from the IDs visible "
529
  "the term_taxonomy_id which is unique to this taxonomy."
530
  msgstr ""
531
 
532
+ #: includes/admin/default-settings.php:494
533
  msgid "Disable contextual matching"
534
  msgstr ""
535
 
536
+ #: includes/admin/default-settings.php:495
537
  msgid ""
538
  "Selecting this option will turn off contextual matching. This is only useful "
539
  "if you activate the option: \"Only from same\" from the General tab. "
541
  "with no relevance."
542
  msgstr ""
543
 
544
+ #: includes/admin/default-settings.php:501
545
  msgid "Disable contextual matching ONLY on attachments and custom post types"
546
  msgstr ""
547
 
548
+ #: includes/admin/default-settings.php:502
549
  msgid ""
550
  "Applies only if the previous option is checked. Selecting this option will "
551
  "retain contextual matching for posts and pages but disable this on any "
552
  "custom post types."
553
  msgstr ""
554
 
555
+ #: includes/admin/default-settings.php:531
556
+ #: includes/admin/default-settings.php:717
557
+ #: includes/blocks/related-posts/src/edit.js:224
558
  msgid "Location of the post thumbnail"
559
  msgstr ""
560
 
561
+ #: includes/admin/default-settings.php:536
562
+ #: includes/admin/default-settings.php:722
563
  msgid "Display thumbnails inline with posts, before title"
564
  msgstr ""
565
 
566
+ #: includes/admin/default-settings.php:537
567
+ #: includes/admin/default-settings.php:723
568
  msgid "Display thumbnails inline with posts, after title"
569
  msgstr ""
570
 
571
+ #: includes/admin/default-settings.php:538
572
+ #: includes/admin/default-settings.php:724
573
  msgid "Display only thumbnails, no text"
574
  msgstr ""
575
 
576
+ #: includes/admin/default-settings.php:539
577
+ #: includes/admin/default-settings.php:725
578
  msgid "Do not display thumbnails, only text"
579
  msgstr ""
580
 
581
+ #: includes/admin/default-settings.php:544
582
  msgid "Thumbnail size"
583
  msgstr ""
584
 
585
+ #: includes/admin/default-settings.php:545
586
  msgid ""
587
  "You can choose from existing image sizes above or create a custom size. If "
588
  "you have chosen Custom size above, then enter the width, height and crop "
590
  "width and/or height below, existing images will not be automatically resized."
591
  msgstr ""
592
 
593
+ #: includes/admin/default-settings.php:547
594
  #, php-format
595
  msgid "I recommend using %1$s or %2$s to regenerate all image sizes."
596
  msgstr ""
597
 
598
+ #: includes/admin/default-settings.php:557
599
+ #: includes/admin/default-settings.php:730
600
  #: includes/modules/class-crp-widget.php:125
601
  msgid "Thumbnail width"
602
  msgstr ""
603
 
604
+ #: includes/admin/default-settings.php:566
605
+ #: includes/admin/default-settings.php:739
606
  #: includes/modules/class-crp-widget.php:120
607
  msgid "Thumbnail height"
608
  msgstr ""
609
 
610
+ #: includes/admin/default-settings.php:575
611
  msgid "Hard crop thumbnails"
612
  msgstr ""
613
 
614
+ #: includes/admin/default-settings.php:576
615
  msgid ""
616
  "Check this box to hard crop the thumbnails. i.e. force the width and height "
617
  "above vs. maintaining proportions."
618
  msgstr ""
619
 
620
+ #: includes/admin/default-settings.php:582
621
  msgid "Generate thumbnail sizes"
622
  msgstr ""
623
 
624
+ #: includes/admin/default-settings.php:583
625
  msgid ""
626
  "If you select this option and Custom size is selected above, the plugin will "
627
  "register the image size with WordPress to create new thumbnails. Does not "
628
  "update old images as explained above."
629
  msgstr ""
630
 
631
+ #: includes/admin/default-settings.php:589
632
  msgid "Thumbnail size attributes"
633
  msgstr ""
634
 
635
+ #: includes/admin/default-settings.php:595
636
  #, php-format
637
  msgid "Use CSS to set the width and height: e.g. %s"
638
  msgstr ""
639
 
640
+ #: includes/admin/default-settings.php:597
641
  #, php-format
642
  msgid "Use HTML attributes to set the width and height: e.g. %s"
643
  msgstr ""
644
 
645
+ #: includes/admin/default-settings.php:598
646
  msgid ""
647
  "No width or height set. You will need to use external styles to force any "
648
  "width or height of your choice."
649
  msgstr ""
650
 
651
+ #: includes/admin/default-settings.php:603
652
  msgid "Thumbnail meta field name"
653
  msgstr ""
654
 
655
+ #: includes/admin/default-settings.php:604
656
  msgid ""
657
  "The value of this field should contain the URL of the image and can be set "
658
  "in the metabox in the Edit Post screen"
659
  msgstr ""
660
 
661
+ #: includes/admin/default-settings.php:610
662
  msgid "Get first image"
663
  msgstr ""
664
 
665
+ #: includes/admin/default-settings.php:611
666
  msgid ""
667
  "The plugin will fetch the first image in the post content if this is "
668
  "enabled. This can slow down the loading of your page if the first image in "
669
  "the followed posts is large in file-size."
670
  msgstr ""
671
 
672
+ #: includes/admin/default-settings.php:617
673
  msgid "Use default thumbnail?"
674
  msgstr ""
675
 
676
+ #: includes/admin/default-settings.php:618
677
  msgid ""
678
  "If checked, when no thumbnail is found, show a default one from the URL "
679
  "below. If not checked and no thumbnail is found, no image will be shown."
680
  msgstr ""
681
 
682
+ #: includes/admin/default-settings.php:624 includes/admin/settings-page.php:763
683
  msgid "Default thumbnail"
684
  msgstr ""
685
 
686
+ #: includes/admin/default-settings.php:625
687
  msgid ""
688
  "Enter the full URL of the image that you wish to display if no thumbnail is "
689
  "found. This image will be displayed below."
690
  msgstr ""
691
 
692
+ #: includes/admin/default-settings.php:655
693
  msgid "Related Posts style"
694
  msgstr ""
695
 
696
+ #: includes/admin/default-settings.php:663
697
  msgid "Custom CSS"
698
  msgstr ""
699
 
700
+ #: includes/admin/default-settings.php:665
701
  #, php-format
702
  msgid ""
703
  "Do not include %3$sstyle%4$s tags. Check out the %1$sFAQ%2$s for available "
704
  "CSS classes to style."
705
  msgstr ""
706
 
707
+ #: includes/admin/default-settings.php:695
708
  msgid "About this tab"
709
  msgstr ""
710
 
711
+ #: includes/admin/default-settings.php:696
712
  msgid ""
713
  "Below options override the related posts settings for your blog feed. These "
714
  "only apply if you have selected to add related posts to Feeds in the General "
716
  "way to style the related posts in the feed."
717
  msgstr ""
718
 
719
+ #: includes/admin/default-settings.php:816
720
  msgid "No styles"
721
  msgstr ""
722
 
723
+ #: includes/admin/default-settings.php:817
724
  msgid "Select this option if you plan to add your own styles"
725
  msgstr ""
726
 
727
+ #: includes/admin/default-settings.php:821
728
  msgid "Text only"
729
  msgstr ""
730
 
731
+ #: includes/admin/default-settings.php:822
732
  msgid "Disable thumbnails and no longer include the default style sheet"
733
  msgstr ""
734
 
735
+ #: includes/admin/default-settings.php:826
736
  msgid "Rounded thumbnails"
737
  msgstr ""
738
 
739
+ #: includes/admin/default-settings.php:827
740
  msgid ""
741
  "Enabling this option will turn on the thumbnails. It will also turn off the "
742
  "display of the author, excerpt and date if already enabled. Disabling this "
743
  "option will not revert any settings."
744
  msgstr ""
745
 
746
+ #: includes/admin/default-settings.php:831
747
  msgid "Masonry"
748
  msgstr ""
749
 
750
+ #: includes/admin/default-settings.php:832
751
  msgid "Enables a masonry style layout similar to one made famous by Pinterest."
752
  msgstr ""
753
 
754
+ #: includes/admin/default-settings.php:836
755
  msgid "Grid"
756
  msgstr ""
757
 
758
+ #: includes/admin/default-settings.php:837
759
  msgid "Uses CSS Grid for display. Might not work on older browsers."
760
  msgstr ""
761
 
762
+ #: includes/admin/default-settings.php:841
763
  msgid "Rounded thumbnails with CSS grid"
764
  msgstr ""
765
 
766
+ #: includes/admin/default-settings.php:842
767
  msgid ""
768
  "Uses CSS grid. It will also turn off the display of the author, excerpt and "
769
  "date if already enabled. Disabling this option will not revert any settings."
770
  msgstr ""
771
 
772
+ #: includes/admin/default-settings.php:865
773
+ #: includes/blocks/related-posts/src/edit.js:261
774
  msgid "By relevance"
775
  msgstr ""
776
 
777
+ #: includes/admin/default-settings.php:866
778
+ #: includes/blocks/related-posts/src/edit.js:265
779
  msgid "Randomly"
780
  msgstr ""
781
 
782
+ #: includes/admin/default-settings.php:867
783
+ #: includes/blocks/related-posts/src/edit.js:269
784
  msgid "By date"
785
  msgstr ""
786
 
822
  "\"%1$s\" target=\"_blank\">knowledgebase articles</a>."
823
  msgstr ""
824
 
825
+ #: includes/admin/help-tab.php:57
826
+ msgid "Tools"
827
+ msgstr ""
828
+
829
  #: includes/admin/help-tab.php:59
830
  msgid ""
831
  "This screen provides some tools that help maintain certain features of "
1209
  "block settings."
1210
  msgstr ""
1211
 
1212
+ #: includes/blocks/related-posts/src/edit.js:113
1213
  msgid "Related Posts Settings"
1214
  msgstr ""
1215
 
1216
+ #: includes/blocks/related-posts/src/edit.js:119
1217
  msgid "Show heading"
1218
  msgstr ""
1219
 
1220
+ #: includes/blocks/related-posts/src/edit.js:122
1221
  msgid "Heading displayed"
1222
  msgstr ""
1223
 
1224
+ #: includes/blocks/related-posts/src/edit.js:123
1225
  msgid "No Heading displayed"
1226
  msgstr ""
1227
 
1228
+ #: includes/blocks/related-posts/src/edit.js:137
1229
+ msgid ""
1230
+ "Displayed before the list of the posts as a master heading. HTML allowed."
1231
+ msgstr ""
1232
+
1233
+ #: includes/blocks/related-posts/src/edit.js:146
1234
  #: includes/modules/class-crp-rest-api.php:165
1235
  msgid "Number of posts"
1236
  msgstr ""
1237
 
1238
+ #: includes/blocks/related-posts/src/edit.js:150
1239
  msgid "Maximum number of posts to display"
1240
  msgstr ""
1241
 
1242
+ #: includes/blocks/related-posts/src/edit.js:159
1243
  #: includes/modules/class-crp-widget.php:91
1244
  msgid "Offset"
1245
  msgstr ""
1246
 
1247
+ #: includes/blocks/related-posts/src/edit.js:163
1248
  msgid "Number of posts to skip from the top"
1249
  msgstr ""
1250
 
1251
+ #: includes/blocks/related-posts/src/edit.js:172
1252
  msgid "Show excerpt"
1253
  msgstr ""
1254
 
1255
+ #: includes/blocks/related-posts/src/edit.js:175
1256
  msgid "Excerpt displayed"
1257
  msgstr ""
1258
 
1259
+ #: includes/blocks/related-posts/src/edit.js:176
1260
  msgid "No excerpt"
1261
  msgstr ""
1262
 
1263
+ #: includes/blocks/related-posts/src/edit.js:190
1264
  msgid "\"by Author Name\" displayed"
1265
  msgstr ""
1266
 
1267
+ #: includes/blocks/related-posts/src/edit.js:193
1268
  msgid "No author displayed"
1269
  msgstr ""
1270
 
1271
+ #: includes/blocks/related-posts/src/edit.js:206
1272
  msgid "Date of post displayed"
1273
  msgstr ""
1274
 
1275
+ #: includes/blocks/related-posts/src/edit.js:208
1276
  msgid "Date of post not displayed"
1277
  msgstr ""
1278
 
1279
+ #: includes/blocks/related-posts/src/edit.js:220
1280
  msgid "Thumbnail option"
1281
  msgstr ""
1282
 
1283
+ #: includes/blocks/related-posts/src/edit.js:230
1284
  msgid "Before title"
1285
  msgstr ""
1286
 
1287
+ #: includes/blocks/related-posts/src/edit.js:234
1288
  msgid "After title"
1289
  msgstr ""
1290
 
1291
+ #: includes/blocks/related-posts/src/edit.js:238
1292
  msgid "Only thumbnail"
1293
  msgstr ""
1294
 
1295
+ #: includes/blocks/related-posts/src/edit.js:242
1296
  msgid "Only text"
1297
  msgstr ""
1298
 
1299
+ #: includes/blocks/related-posts/src/edit.js:255
1300
  msgid "This option directly edits the query"
1301
  msgstr ""
1302
 
1303
+ #: includes/blocks/related-posts/src/edit.js:282
1304
  msgid "Posts are shuffled on each load"
1305
  msgstr ""
1306
 
1307
+ #: includes/blocks/related-posts/src/edit.js:286
1308
  msgid "Posts displayed based on above setting"
1309
  msgstr ""
1310
 
1311
+ #: includes/blocks/related-posts/src/edit.js:298
1312
  msgid "Other attributes"
1313
  msgstr ""
1314
 
1315
+ #: includes/blocks/related-posts/src/edit.js:302
1316
  msgid ""
1317
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1318
  "page&link_nofollow=1&exclude_post_ids=5,6"
1319
  msgstr ""
1320
 
1321
+ #: includes/blocks/related-posts/src/edit.js:317
1322
  msgid ""
1323
  "This is a placeholder for the related posts block. Visit the front end of "
1324
  "your site to see the related posts."
1325
  msgstr ""
1326
 
1327
+ #: includes/main-query.php:213
1328
  #, php-format
1329
  msgid ""
1330
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
1419
  msgid "Only from categories (comma-separated list of term taxonomy IDs)"
1420
  msgstr ""
1421
 
1422
+ #: includes/output-generator.php:240
1423
  msgid " by "
1424
  msgstr ""
1425
 
phpcs.xml.dist ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Coding Standards for Plugins">
3
+ <description>Generally-applicable sniffs for WordPress plugins</description>
4
+
5
+ <file>.</file>
6
+ <exclude-pattern>*/node_modules/*</exclude-pattern>
7
+ <exclude-pattern>*/phpunit/*</exclude-pattern>
8
+ <exclude-pattern>*/vendor/*</exclude-pattern>
9
+ <exclude-pattern>*/tests/*</exclude-pattern>
10
+ <exclude-pattern>*/index.php</exclude-pattern>
11
+ <exclude-pattern>*/index.asset.php</exclude-pattern>
12
+
13
+ <!-- Only check PHP files. -->
14
+ <arg name="extensions" value="php"/>
15
+
16
+ <!-- Show progress, show the error codes for each message (source). -->
17
+ <arg value="ps"/>
18
+
19
+ <!-- Strip the filepaths down to the relevant bit. -->
20
+ <arg name="basepath" value="./"/>
21
+
22
+ <!-- Check up to 8 files simultaneously. -->
23
+ <arg name="parallel" value="8"/>
24
+
25
+ <!-- Use WordPress ruleset. -->
26
+ <rule ref="WordPress">
27
+ <exclude name="WordPress.WP.I18n" />
28
+ </rule>
29
+ <rule ref="WordPress.Files.FileName">
30
+ <exclude-pattern>*/phpunit/tests/*\.php$</exclude-pattern>
31
+ </rule>
32
+
33
+ <!-- Add in some extra rules from other standards. -->
34
+ <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
35
+ <rule ref="Generic.Commenting.Todo"/>
36
+ <rule ref="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
37
+
38
+ </ruleset>
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Tags: related posts, related, related articles, contextual related posts, similar posts, related posts widget
3
  Contributors: webberzone, Ajay
4
  Donate link: https://ajaydsouza.com/donate/
5
- Stable tag: 3.2.3
6
  Requires at least: 5.6
7
  Tested up to: 6.1
8
- Requires PHP: 7.2
9
  License: GPLv2 or later
10
 
11
  Related posts for your WordPress site with inbuilt caching. Supports blocks, shortcodes, widgets and custom post types!
@@ -129,39 +129,32 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t
129
 
130
  7. Default Thumbnail: If enabled, it will use the default thumbnail that you specify in the Settings page
131
 
132
- = Template tags =
133
-
134
- The following functions are available in case you wish to do a manual install of the posts by editing the theme files.
135
-
136
- **echo_crp( $args = array() )**
137
-
138
- Echoes the list of posts wherever you add the this function. You can also use this function to display related posts on any type of page generated by WordPress including homepage and archive pages.
139
-
140
- Usage: `<?php if ( function_exists( 'echo_crp' ) ) { echo_crp(); } ?>` to your template file where you want the related posts to be displayed.
141
-
142
- **get_crp_posts_id( $args = array() )**
143
-
144
- Takes a post ID and returns the related post IDs as an object.
145
 
146
- Usage: `<?php if ( function_exists( 'get_crp_posts_id' ) ) { get_crp_posts_id( array(
147
- 'postid' => $postid,
148
- 'limit' => $limit,
149
- ) ); } ?>`
150
 
151
- Parameters:
152
 
153
- *$postid* : The ID of the post you'd like to fetch. By default the current post is fetched. Use within the Loop for best results.
154
 
155
- *$limit* : Maximum number of posts to return. The actual number displayed may be lower depending on the matching algorithm and the category / post exclusion settings.
156
 
157
- This is not an exhaustive set of Parameters. For the full list of Parameters check out the shortcode FAQ below.
158
 
159
- = Shortcodes =
 
 
160
 
161
- You can insert the related posts anywhere in your post using the `[crp]` shortcode. View [this article in the knowledge base](https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/) for more details.
 
 
 
162
 
 
 
 
163
 
164
- == Changelog ==
 
165
 
166
  = 3.2.3 =
167
 
@@ -217,5 +210,5 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
217
 
218
  == Upgrade Notice ==
219
 
220
- = 3.2.3 =
221
- Bug fixes. Please read the release post on https://webberzone.com
2
  Tags: related posts, related, related articles, contextual related posts, similar posts, related posts widget
3
  Contributors: webberzone, Ajay
4
  Donate link: https://ajaydsouza.com/donate/
5
+ Stable tag: 3.3.0
6
  Requires at least: 5.6
7
  Tested up to: 6.1
8
+ Requires PHP: 7.1
9
  License: GPLv2 or later
10
 
11
  Related posts for your WordPress site with inbuilt caching. Supports blocks, shortcodes, widgets and custom post types!
129
 
130
  7. Default Thumbnail: If enabled, it will use the default thumbnail that you specify in the Settings page
131
 
132
+ = Shortcodes =
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
+ You can insert the related posts anywhere in your post using the `[crp]` shortcode. View [this article in the knowledge base](https://webberzone.com/support/knowledgebase/contextual-related-posts-shortcode/) for more details.
 
 
 
135
 
 
136
 
137
+ == Changelog ==
138
 
139
+ = 3.3.0 =
140
 
141
+ Release post: [https://webberzone.com/blog/contextual-related-posts-v3-3-0/](https://webberzone.com/blog/contextual-related-posts-v3-3-0/)
142
 
143
+ * Features:
144
+ * Related posts block allows you to set a custom header above the related posts. Leave blank to get the one from the main settings page.
145
+ * New option "Related Meta Keys" under the List Tuning tab. You can enter a comma-separted list of meta keys. Posts that match the same value of the meta key are displayed before the other related posts.
146
 
147
+ * Enhancements/modifications:
148
+ * If the number of "Manual related posts" is greater than the number of related posts, then the database query is bypassed drastically improving perfomance
149
+ * Moved Related Posts Tools page under Tools menu
150
+ * Related Posts block is now wrapped in `Disabled` tags to prevent accidental clicking of links in the block editor
151
 
152
+ * Bug fixes:
153
+ * Thumb width and height defaults to 150 in case the settings are missing
154
+ * Setting the style to be text_only didn't enforce no thumbnail
155
 
156
+ * Developer:
157
+ * New filters: `crp_query_date_query`, `crp_query_meta_query`, `crp_query_meta_query_relation`
158
 
159
  = 3.2.3 =
160
 
210
 
211
  == Upgrade Notice ==
212
 
213
+ = 3.3.0 =
214
+ Block updates and new settings. Please read the release post on https://webberzone.com