Contextual Related Posts - Version 3.2.3

Version Description

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

  • Enhancements:

    • Block shows a placeholder when used in non-Edit screens or when no content is generated
  • Bug fix:

    • Missing text-only.min.css file
    • Block settings were not saved
Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

README.md CHANGED
@@ -14,7 +14,7 @@ __License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
14
 
15
  __Plugin page:__ [Contextual Related Posts home page](https://webberzone.com/plugins/contextual-related-posts/) | [WordPress.org listing](https://wordpress.org/plugins/contextual-related-posts/)
16
 
17
- Add related posts to your WordPress site with inbuilt caching. Supports thumbnails, shortcodes, widgets and custom post types!
18
 
19
  ## Description
20
 
14
 
15
  __Plugin page:__ [Contextual Related Posts home page](https://webberzone.com/plugins/contextual-related-posts/) | [WordPress.org listing](https://wordpress.org/plugins/contextual-related-posts/)
16
 
17
+ Related posts for your WordPress site with inbuilt caching. Supports blocks, shortcodes, widgets and custom post types!
18
 
19
  ## Description
20
 
changelog.txt CHANGED
@@ -2,6 +2,36 @@
2
 
3
  This is an archive of older changelog entries. Most recent entries are maintained in readme.txt
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  = 3.0.7 =
6
 
7
  Release post: [https://webberzone.com/blog/contextual-related-posts-v3-0-0/](https://webberzone.com/blog/contextual-related-posts-v3-0-0/)
2
 
3
  This is an archive of older changelog entries. Most recent entries are maintained in readme.txt
4
 
5
+ = 3.1.1 =
6
+
7
+ Release post: [https://webberzone.com/blog/contextual-related-posts-v3-1-0/](https://webberzone.com/blog/contextual-related-posts-v3-1-0/)
8
+
9
+ * Enhancements:
10
+ * Don't clear cache when saving settings. The cache can be cleared in the Tools page
11
+ * Default thumbnail is now prioritized over the site icon
12
+
13
+ * Bug fixes:
14
+ * Limiting of characters didn't work properly
15
+ * Fixed link to Tools menu under Settings. Tools button link is better displayed
16
+ * Fixed activation when new blog is created on multisite
17
+
18
+ = 3.1.0 =
19
+
20
+ * Features:
21
+ * REST API support - you can now fetch the related posts via the REST API. Fetch posts at `/contextual-related-posts/v1/posts/<id>`
22
+ * New setting in the metabox to exclude specific terms
23
+
24
+ * Enhancements/modifications:
25
+ * Thumbnail function uses the size instead of exact array of sizes to better select the appropriate thumbnail image size
26
+ * Use site icon if no other thumbnail is found
27
+ * Use both `post_title` and `post_content` fields for matching even when match content setting is off
28
+ * Passing `post_type` and `posts_per_page` arguments will be respected instead of being overridden
29
+
30
+ * Bug fixes:
31
+ * Don't enqueue wp-editor on widgets.php
32
+ * [WP_Query stopwords](https://developer.wordpress.org/reference/classes/wp_query/get_search_stopwords/) are stripped from content that is matched
33
+ * Manual posts are added after the automatic posts are shuffled
34
+
35
  = 3.0.7 =
36
 
37
  Release post: [https://webberzone.com/blog/contextual-related-posts-v3-0-0/](https://webberzone.com/blog/contextual-related-posts-v3-0-0/)
contextual-related-posts.php CHANGED
@@ -14,8 +14,8 @@
14
  * @wordpress-plugin
15
  * Plugin Name: Contextual Related Posts
16
  * Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
17
- * Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
- * Version: 3.2.2
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.1' );
42
  }
43
 
44
 
14
  * @wordpress-plugin
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
  * @var string Contextual Related Posts Version.
39
  */
40
  if ( ! defined( 'CRP_VERSION' ) ) {
41
+ define( 'CRP_VERSION', '3.2.3' );
42
  }
43
 
44
 
css/text-only.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .crp_related.crp-text-only {
2
+ clear: both;
3
+ }
css/text-only.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .crp_related.crp-text-only{clear:both}
includes/blocks/register-blocks.php CHANGED
@@ -56,7 +56,20 @@ function render_crp_block( $attributes ) {
56
  */
57
  $arguments = apply_filters( 'crp_block_options', $arguments, $attributes );
58
 
59
- return get_crp( $arguments );
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
61
 
62
  /**
56
  */
57
  $arguments = apply_filters( 'crp_block_options', $arguments, $attributes );
58
 
59
+ $output = get_crp( $arguments );
60
+ $is_empty_output = empty( wp_strip_all_tags( $output ) );
61
+ $is_backend = defined( 'REST_REQUEST' ) && true === REST_REQUEST && 'edit' === filter_input( INPUT_GET, 'context', FILTER_UNSAFE_RAW );
62
+
63
+ if ( $is_backend && $is_empty_output ) {
64
+ $output = '<h3>';
65
+ $output .= __( 'Contextual Related Posts Block', 'contextual-related-posts' );
66
+ $output .= '</h3>';
67
+ $output .= '<p>';
68
+ $output .= __( 'No related posts were found or the block rendered empty. Please modify your block settings.', 'contextual-related-posts' );
69
+ $output .= '</p>';
70
+ }
71
+
72
+ return $output;
73
  }
74
 
75
  /**
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' => '79313b027ff695c9e9ad15ab1d965fb2');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '644b7ff81961cc116c1996f06630189b');
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),r=window.wp.blockEditor,s=window.wp.components;(0,t.registerBlockType)("contextual-related-posts/related-posts",{edit:function(e){let{attributes:t,setAttributes:a}=e;function d(e){return void 0===e||0===e||""===e||isNaN(e)?"":parseInt(e)}const{heading:u,limit:c,offset:p,show_excerpt:i,show_author:_,show_date:h,random_order:m,ordering:x,post_thumb_op:b,other_attributes:f}=t,w=(0,r.useBlockProps)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorControls,null,(0,l.createElement)(s.PanelBody,{title:(0,o.__)("Related Posts Settings","contextual-related-posts"),initialOpen:!0},(0,l.createElement)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.ToggleControl,{label:(0,o.__)("Show heading","contextual-related-posts"),help:u?(0,o.__)("Heading displayed","contextual-related-posts"):(0,o.__)("No Heading displayed","contextual-related-posts"),checked:u,onChange:()=>{a({heading:!u})}}))),(0,l.createElement)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.TextControl,{label:(0,o.__)("Number of posts","contextual-related-posts"),value:c,onChange:e=>{a({limit:d(e)})},help:(0,o.__)("Maximum number of posts to display","contextual-related-posts")}))),(0,l.createElement)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.TextControl,{label:(0,o.__)("Offset","contextual-related-posts"),value:p,onChange:e=>{a({offset:d(e)})},help:(0,o.__)("Number of posts to skip from the top","contextual-related-posts")}))),(0,l.createElement)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.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)(s.PanelRow,null,(0,l.createElement)("fieldset",null,(0,l.createElement)(s.TextareaControl,{label:(0,o.__)("Other attributes","contextual-related-posts"),value:f,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",w,(0,l.createElement)(n(),{block:"contextual-related-posts/related-posts",attributes:t})))},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,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})}();
includes/blocks/related-posts/src/edit.js CHANGED
@@ -23,6 +23,7 @@ import {
23
  PanelRow,
24
  SelectControl,
25
  RadioControl,
 
26
  } from '@wordpress/components';
27
 
28
  /**
@@ -42,14 +43,10 @@ import {
42
  * @return {WPElement} Element to render.
43
  */
44
  export default function Edit({ attributes, setAttributes }) {
45
- function processNumber(input) {
46
- const output =
47
- undefined === input || 0 === input || '' === input || isNaN(input)
48
- ? ''
49
- : parseInt(input);
50
- return output;
51
- }
52
-
53
  const {
54
  heading,
55
  limit,
@@ -68,10 +65,14 @@ export default function Edit({ attributes, setAttributes }) {
68
  setAttributes({ heading: !heading });
69
  };
70
  const onChangeLimit = (newLimit) => {
71
- setAttributes({ limit: processNumber(newLimit) });
 
 
72
  };
73
  const onChangeOffset = (newOffset) => {
74
- setAttributes({ offset: processNumber(newOffset) });
 
 
75
  };
76
  const toggleShowExcerpt = () => {
77
  setAttributes({ show_excerpt: !show_excerpt });
@@ -288,10 +289,21 @@ export default function Edit({ attributes, setAttributes }) {
288
  </InspectorControls>
289
 
290
  <div {...blockProps}>
291
- <ServerSideRender
292
- block="contextual-related-posts/related-posts"
293
- attributes={attributes}
294
- />
 
 
 
 
 
 
 
 
 
 
 
295
  </div>
296
  </>
297
  );
23
  PanelRow,
24
  SelectControl,
25
  RadioControl,
26
+ Placeholder,
27
  } from '@wordpress/components';
28
 
29
  /**
43
  * @return {WPElement} Element to render.
44
  */
45
  export default function Edit({ attributes, setAttributes }) {
46
+ const postId =
47
+ null === wp.data.select('core/editor')
48
+ ? 0
49
+ : wp.data.select('core/editor').getCurrentPostId();
 
 
 
 
50
  const {
51
  heading,
52
  limit,
65
  setAttributes({ heading: !heading });
66
  };
67
  const onChangeLimit = (newLimit) => {
68
+ setAttributes({
69
+ limit: undefined === newLimit ? '' : newLimit,
70
+ });
71
  };
72
  const onChangeOffset = (newOffset) => {
73
+ setAttributes({
74
+ offset: undefined === newOffset ? '' : newOffset,
75
+ });
76
  };
77
  const toggleShowExcerpt = () => {
78
  setAttributes({ show_excerpt: !show_excerpt });
289
  </InspectorControls>
290
 
291
  <div {...blockProps}>
292
+ {!postId ? (
293
+ <Placeholder
294
+ icon={'list-view'}
295
+ label={__('Contextual Related Posts', 'contextual-related-posts')}
296
+ instructions={__(
297
+ 'This is a placeholder for the related posts block. Visit the front end of your site to see the related posts.',
298
+ 'contextual-related-posts'
299
+ )}
300
+ ></Placeholder>
301
+ ) : (
302
+ <ServerSideRender
303
+ block="contextual-related-posts/related-posts"
304
+ attributes={attributes}
305
+ />
306
+ )}
307
  </div>
308
  </>
309
  );
includes/class-crp-query.php CHANGED
@@ -181,7 +181,7 @@ if ( ! class_exists( 'CRP_Query' ) ) :
181
 
182
  // Set the number of posts to be retrieved. Use posts_per_page if set else use limit.
183
  if ( empty( $args['posts_per_page'] ) ) {
184
- $args['posts_per_page'] = ( $args['strict_limit'] ) ? $args['limit'] : ( $args['limit'] * 3 );
185
  }
186
 
187
  if ( empty( $args['post_type'] ) ) {
181
 
182
  // Set the number of posts to be retrieved. Use posts_per_page if set else use limit.
183
  if ( empty( $args['posts_per_page'] ) ) {
184
+ $args['posts_per_page'] = ( $args['strict_limit'] ) ? absint( $args['limit'] ) : ( absint( $args['limit'] ) * 3 );
185
  }
186
 
187
  if ( empty( $args['post_type'] ) ) {
includes/main-query.php CHANGED
@@ -21,6 +21,10 @@ if ( ! defined( 'WPINC' ) ) {
21
  function get_crp( $args = array() ) {
22
  global $post, $crp_settings;
23
 
 
 
 
 
24
  $crp_settings = crp_get_settings();
25
 
26
  $defaults = array(
21
  function get_crp( $args = array() ) {
22
  global $post, $crp_settings;
23
 
24
+ if ( ! $post ) {
25
+ return '';
26
+ }
27
+
28
  $crp_settings = crp_get_settings();
29
 
30
  $defaults = array(
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-04-30 15:53+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza\n"
8
  "Language-Team: WebberZone\n"
@@ -19,7 +19,7 @@ msgstr ""
19
  "X-Poedit-SourceCharset: UTF-8\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
- #: includes/admin/admin.php:31
23
  msgid "Contextual Related Posts"
24
  msgstr ""
25
 
@@ -258,7 +258,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:182
262
  msgid "Show date"
263
  msgstr ""
264
 
@@ -269,7 +269,7 @@ msgid ""
269
  msgstr ""
270
 
271
  #: includes/admin/default-settings.php:240
272
- #: includes/blocks/related-posts/src/edit.js:165
273
  msgid "Show author"
274
  msgstr ""
275
 
@@ -378,13 +378,13 @@ msgid ""
378
  msgstr ""
379
 
380
  #: includes/admin/default-settings.php:380
381
- #: includes/blocks/related-posts/src/edit.js:230
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:257
388
  msgid "Randomize posts"
389
  msgstr ""
390
 
@@ -542,7 +542,7 @@ msgstr ""
542
 
543
  #: includes/admin/default-settings.php:523
544
  #: includes/admin/default-settings.php:709
545
- #: includes/blocks/related-posts/src/edit.js:203
546
  msgid "Location of the post thumbnail"
547
  msgstr ""
548
 
@@ -758,17 +758,17 @@ msgid ""
758
  msgstr ""
759
 
760
  #: includes/admin/default-settings.php:857
761
- #: includes/blocks/related-posts/src/edit.js:240
762
  msgid "By relevance"
763
  msgstr ""
764
 
765
  #: includes/admin/default-settings.php:858
766
- #: includes/blocks/related-posts/src/edit.js:244
767
  msgid "Randomly"
768
  msgstr ""
769
 
770
  #: includes/admin/default-settings.php:859
771
- #: includes/blocks/related-posts/src/edit.js:248
772
  msgid "By date"
773
  msgstr ""
774
 
@@ -1183,111 +1183,127 @@ msgstr ""
1183
  msgid "Follow me"
1184
  msgstr ""
1185
 
1186
- #: includes/blocks/related-posts/src/edit.js:105
 
 
 
 
 
 
 
 
 
 
1187
  msgid "Related Posts Settings"
1188
  msgstr ""
1189
 
1190
- #: includes/blocks/related-posts/src/edit.js:111
1191
  msgid "Show heading"
1192
  msgstr ""
1193
 
1194
- #: includes/blocks/related-posts/src/edit.js:114
1195
  msgid "Heading displayed"
1196
  msgstr ""
1197
 
1198
- #: includes/blocks/related-posts/src/edit.js:115
1199
  msgid "No Heading displayed"
1200
  msgstr ""
1201
 
1202
- #: includes/blocks/related-posts/src/edit.js:125
1203
  #: includes/modules/class-crp-rest-api.php:165
1204
  msgid "Number of posts"
1205
  msgstr ""
1206
 
1207
- #: includes/blocks/related-posts/src/edit.js:129
1208
  msgid "Maximum number of posts to display"
1209
  msgstr ""
1210
 
1211
- #: includes/blocks/related-posts/src/edit.js:138
1212
  #: includes/modules/class-crp-widget.php:91
1213
  msgid "Offset"
1214
  msgstr ""
1215
 
1216
- #: includes/blocks/related-posts/src/edit.js:142
1217
  msgid "Number of posts to skip from the top"
1218
  msgstr ""
1219
 
1220
- #: includes/blocks/related-posts/src/edit.js:151
1221
  msgid "Show excerpt"
1222
  msgstr ""
1223
 
1224
- #: includes/blocks/related-posts/src/edit.js:154
1225
  msgid "Excerpt displayed"
1226
  msgstr ""
1227
 
1228
- #: includes/blocks/related-posts/src/edit.js:155
1229
  msgid "No excerpt"
1230
  msgstr ""
1231
 
1232
- #: includes/blocks/related-posts/src/edit.js:169
1233
  msgid "\"by Author Name\" displayed"
1234
  msgstr ""
1235
 
1236
- #: includes/blocks/related-posts/src/edit.js:172
1237
  msgid "No author displayed"
1238
  msgstr ""
1239
 
1240
- #: includes/blocks/related-posts/src/edit.js:185
1241
  msgid "Date of post displayed"
1242
  msgstr ""
1243
 
1244
- #: includes/blocks/related-posts/src/edit.js:187
1245
  msgid "Date of post not displayed"
1246
  msgstr ""
1247
 
1248
- #: includes/blocks/related-posts/src/edit.js:199
1249
  msgid "Thumbnail option"
1250
  msgstr ""
1251
 
1252
- #: includes/blocks/related-posts/src/edit.js:209
1253
  msgid "Before title"
1254
  msgstr ""
1255
 
1256
- #: includes/blocks/related-posts/src/edit.js:213
1257
  msgid "After title"
1258
  msgstr ""
1259
 
1260
- #: includes/blocks/related-posts/src/edit.js:217
1261
  msgid "Only thumbnail"
1262
  msgstr ""
1263
 
1264
- #: includes/blocks/related-posts/src/edit.js:221
1265
  msgid "Only text"
1266
  msgstr ""
1267
 
1268
- #: includes/blocks/related-posts/src/edit.js:234
1269
  msgid "This option directly edits the query"
1270
  msgstr ""
1271
 
1272
- #: includes/blocks/related-posts/src/edit.js:261
1273
  msgid "Posts are shuffled on each load"
1274
  msgstr ""
1275
 
1276
- #: includes/blocks/related-posts/src/edit.js:265
1277
  msgid "Posts displayed based on above setting"
1278
  msgstr ""
1279
 
1280
- #: includes/blocks/related-posts/src/edit.js:277
1281
  msgid "Other attributes"
1282
  msgstr ""
1283
 
1284
- #: includes/blocks/related-posts/src/edit.js:281
1285
  msgid ""
1286
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1287
  "page&link_nofollow=1&exclude_post_ids=5,6"
1288
  msgstr ""
1289
 
1290
- #: includes/main-query.php:205
 
 
 
 
 
 
1291
  #, php-format
1292
  msgid ""
1293
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
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"
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
 
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
  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
 
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
 
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
 
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
 
1183
  msgid "Follow me"
1184
  msgstr ""
1185
 
1186
+ #: includes/blocks/register-blocks.php:65
1187
+ msgid "Contextual Related Posts Block"
1188
+ msgstr ""
1189
+
1190
+ #: includes/blocks/register-blocks.php:68
1191
+ msgid ""
1192
+ "No related posts were found or the block rendered empty. Please modify your "
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 "
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-04-30 15:53+0100\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza\n"
9
  "Language-Team: WebberZone\n"
@@ -20,7 +20,7 @@ msgstr ""
20
  "X-Poedit-SourceCharset: UTF-8\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
 
23
- #: includes/admin/admin.php:31
24
  msgid "Contextual Related Posts"
25
  msgstr ""
26
 
@@ -259,7 +259,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:182
263
  msgid "Show date"
264
  msgstr ""
265
 
@@ -270,7 +270,7 @@ msgid ""
270
  msgstr ""
271
 
272
  #: includes/admin/default-settings.php:240
273
- #: includes/blocks/related-posts/src/edit.js:165
274
  msgid "Show author"
275
  msgstr ""
276
 
@@ -379,13 +379,13 @@ msgid ""
379
  msgstr ""
380
 
381
  #: includes/admin/default-settings.php:380
382
- #: includes/blocks/related-posts/src/edit.js:230
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:257
389
  msgid "Randomize posts"
390
  msgstr ""
391
 
@@ -543,7 +543,7 @@ msgstr ""
543
 
544
  #: includes/admin/default-settings.php:523
545
  #: includes/admin/default-settings.php:709
546
- #: includes/blocks/related-posts/src/edit.js:203
547
  msgid "Location of the post thumbnail"
548
  msgstr ""
549
 
@@ -759,17 +759,17 @@ msgid ""
759
  msgstr ""
760
 
761
  #: includes/admin/default-settings.php:857
762
- #: includes/blocks/related-posts/src/edit.js:240
763
  msgid "By relevance"
764
  msgstr ""
765
 
766
  #: includes/admin/default-settings.php:858
767
- #: includes/blocks/related-posts/src/edit.js:244
768
  msgid "Randomly"
769
  msgstr ""
770
 
771
  #: includes/admin/default-settings.php:859
772
- #: includes/blocks/related-posts/src/edit.js:248
773
  msgid "By date"
774
  msgstr ""
775
 
@@ -1184,111 +1184,127 @@ msgstr ""
1184
  msgid "Follow me"
1185
  msgstr ""
1186
 
1187
- #: includes/blocks/related-posts/src/edit.js:105
 
 
 
 
 
 
 
 
 
 
1188
  msgid "Related Posts Settings"
1189
  msgstr ""
1190
 
1191
- #: includes/blocks/related-posts/src/edit.js:111
1192
  msgid "Show heading"
1193
  msgstr ""
1194
 
1195
- #: includes/blocks/related-posts/src/edit.js:114
1196
  msgid "Heading displayed"
1197
  msgstr ""
1198
 
1199
- #: includes/blocks/related-posts/src/edit.js:115
1200
  msgid "No Heading displayed"
1201
  msgstr ""
1202
 
1203
- #: includes/blocks/related-posts/src/edit.js:125
1204
  #: includes/modules/class-crp-rest-api.php:165
1205
  msgid "Number of posts"
1206
  msgstr ""
1207
 
1208
- #: includes/blocks/related-posts/src/edit.js:129
1209
  msgid "Maximum number of posts to display"
1210
  msgstr ""
1211
 
1212
- #: includes/blocks/related-posts/src/edit.js:138
1213
  #: includes/modules/class-crp-widget.php:91
1214
  msgid "Offset"
1215
  msgstr ""
1216
 
1217
- #: includes/blocks/related-posts/src/edit.js:142
1218
  msgid "Number of posts to skip from the top"
1219
  msgstr ""
1220
 
1221
- #: includes/blocks/related-posts/src/edit.js:151
1222
  msgid "Show excerpt"
1223
  msgstr ""
1224
 
1225
- #: includes/blocks/related-posts/src/edit.js:154
1226
  msgid "Excerpt displayed"
1227
  msgstr ""
1228
 
1229
- #: includes/blocks/related-posts/src/edit.js:155
1230
  msgid "No excerpt"
1231
  msgstr ""
1232
 
1233
- #: includes/blocks/related-posts/src/edit.js:169
1234
  msgid "\"by Author Name\" displayed"
1235
  msgstr ""
1236
 
1237
- #: includes/blocks/related-posts/src/edit.js:172
1238
  msgid "No author displayed"
1239
  msgstr ""
1240
 
1241
- #: includes/blocks/related-posts/src/edit.js:185
1242
  msgid "Date of post displayed"
1243
  msgstr ""
1244
 
1245
- #: includes/blocks/related-posts/src/edit.js:187
1246
  msgid "Date of post not displayed"
1247
  msgstr ""
1248
 
1249
- #: includes/blocks/related-posts/src/edit.js:199
1250
  msgid "Thumbnail option"
1251
  msgstr ""
1252
 
1253
- #: includes/blocks/related-posts/src/edit.js:209
1254
  msgid "Before title"
1255
  msgstr ""
1256
 
1257
- #: includes/blocks/related-posts/src/edit.js:213
1258
  msgid "After title"
1259
  msgstr ""
1260
 
1261
- #: includes/blocks/related-posts/src/edit.js:217
1262
  msgid "Only thumbnail"
1263
  msgstr ""
1264
 
1265
- #: includes/blocks/related-posts/src/edit.js:221
1266
  msgid "Only text"
1267
  msgstr ""
1268
 
1269
- #: includes/blocks/related-posts/src/edit.js:234
1270
  msgid "This option directly edits the query"
1271
  msgstr ""
1272
 
1273
- #: includes/blocks/related-posts/src/edit.js:261
1274
  msgid "Posts are shuffled on each load"
1275
  msgstr ""
1276
 
1277
- #: includes/blocks/related-posts/src/edit.js:265
1278
  msgid "Posts displayed based on above setting"
1279
  msgstr ""
1280
 
1281
- #: includes/blocks/related-posts/src/edit.js:277
1282
  msgid "Other attributes"
1283
  msgstr ""
1284
 
1285
- #: includes/blocks/related-posts/src/edit.js:281
1286
  msgid ""
1287
  "Enter other attributes in a URL-style string-query. e.g. post_types=post,"
1288
  "page&link_nofollow=1&exclude_post_ids=5,6"
1289
  msgstr ""
1290
 
1291
- #: includes/main-query.php:205
 
 
 
 
 
 
1292
  #, php-format
1293
  msgid ""
1294
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
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"
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
 
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
  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
 
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
 
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
 
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
 
1184
  msgid "Follow me"
1185
  msgstr ""
1186
 
1187
+ #: includes/blocks/register-blocks.php:65
1188
+ msgid "Contextual Related Posts Block"
1189
+ msgstr ""
1190
+
1191
+ #: includes/blocks/register-blocks.php:68
1192
+ msgid ""
1193
+ "No related posts were found or the block rendered empty. Please modify your "
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 "
readme.txt CHANGED
@@ -2,13 +2,13 @@
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.2
6
  Requires at least: 5.6
7
- Tested up to: 5.9
8
- Requires PHP: 7.1
9
  License: GPLv2 or later
10
 
11
- Add related posts to your WordPress site with inbuilt caching. Supports thumbnails, shortcodes, widgets and custom post types!
12
 
13
  == Description ==
14
 
@@ -163,10 +163,19 @@ You can insert the related posts anywhere in your post using the `[crp]` shortco
163
 
164
  == Changelog ==
165
 
166
- = 3.2.2 =
167
 
168
  Release post: [https://webberzone.com/blog/contextual-related-posts-v3-2-0/](https://webberzone.com/blog/contextual-related-posts-v3-2-0/)
169
 
 
 
 
 
 
 
 
 
 
170
  * Bug fix:
171
  * Widget options were not saved properly
172
  * Stylesheets and header styles have been fixed to be more specific
@@ -201,36 +210,6 @@ Release post: [https://webberzone.com/blog/contextual-related-posts-v3-2-0/](htt
201
  * Bug fixes:
202
  * Current post was incorrectly being excluded in the translation functions
203
 
204
- = 3.1.1 =
205
-
206
- Release post: [https://webberzone.com/blog/contextual-related-posts-v3-1-0/](https://webberzone.com/blog/contextual-related-posts-v3-1-0/)
207
-
208
- * Enhancements:
209
- * Don't clear cache when saving settings. The cache can be cleared in the Tools page
210
- * Default thumbnail is now prioritized over the site icon
211
-
212
- * Bug fixes:
213
- * Limiting of characters didn't work properly
214
- * Fixed link to Tools menu under Settings. Tools button link is better displayed
215
- * Fixed activation when new blog is created on multisite
216
-
217
- = 3.1.0 =
218
-
219
- * Features:
220
- * REST API support - you can now fetch the related posts via the REST API. Fetch posts at `/contextual-related-posts/v1/posts/<id>`
221
- * New setting in the metabox to exclude specific terms
222
-
223
- * Enhancements/modifications:
224
- * Thumbnail function uses the size instead of exact array of sizes to better select the appropriate thumbnail image size
225
- * Use site icon if no other thumbnail is found
226
- * Use both `post_title` and `post_content` fields for matching even when match content setting is off
227
- * Passing `post_type` and `posts_per_page` arguments will be respected instead of being overridden
228
-
229
- * Bug fixes:
230
- * Don't enqueue wp-editor on widgets.php
231
- * [WP_Query stopwords](https://developer.wordpress.org/reference/classes/wp_query/get_search_stopwords/) are stripped from content that is matched
232
- * Manual posts are added after the automatic posts are shuffled
233
-
234
  = Earlier versions =
235
 
236
  For the changelog of earlier versions, please refer to the separate changelog.txt file or the [releases page on Github](https://github.com/WebberZone/contextual-related-posts/releases).
@@ -238,5 +217,5 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
238
 
239
  == Upgrade Notice ==
240
 
241
- = 3.2.2 =
242
- New featuers and enhancements. 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.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!
12
 
13
  == Description ==
14
 
163
 
164
  == Changelog ==
165
 
166
+ = 3.2.3 =
167
 
168
  Release post: [https://webberzone.com/blog/contextual-related-posts-v3-2-0/](https://webberzone.com/blog/contextual-related-posts-v3-2-0/)
169
 
170
+ * Enhancements:
171
+ * Block shows a placeholder when used in non-Edit screens or when no content is generated
172
+
173
+ * Bug fix:
174
+ * Missing text-only.min.css file
175
+ * Block settings were not saved
176
+
177
+ = 3.2.2 =
178
+
179
  * Bug fix:
180
  * Widget options were not saved properly
181
  * Stylesheets and header styles have been fixed to be more specific
210
  * Bug fixes:
211
  * Current post was incorrectly being excluded in the translation functions
212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  = Earlier versions =
214
 
215
  For the changelog of earlier versions, please refer to the separate changelog.txt file or the [releases page on Github](https://github.com/WebberZone/contextual-related-posts/releases).
217
 
218
  == Upgrade Notice ==
219
 
220
+ = 3.2.3 =
221
+ Bug fixes. Please read the release post on https://webberzone.com