Contextual Related Posts - Version 2.9.3

Version Description

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

  • Features:

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

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

Release Info

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

Code changes from version 2.9.2 to 2.9.3

README.md CHANGED
@@ -48,6 +48,12 @@ And the default inbuilt styles allow you to switch between gorgeous thumbnail-ri
48
  * Customise which HTML tags to use for displaying the output in case you don't prefer the default `list` format
49
  * **Extendable code**: CRP has tonnes of filters and actions that allow any developer to easily add features, edit outputs, etc.
50
 
 
 
 
 
 
 
51
  ### Extensions/Addons
52
 
53
  * [Related Posts by Categories and Tags](https://webberzone.com/downloads/crp-taxonomy/)
@@ -90,6 +96,6 @@ More screenshots are available on the [WordPress plugin page](https://wordpress.
90
 
91
  ## Frequently Asked Questions
92
 
93
- Check out the [FAQ on the plugin page](https://wordpress.org/plugins/contextual-related-posts/faq/).
94
 
95
  If your question isn't listed there, please create a new post at the [WordPress.org support forum](https://wordpress.org/support/plugin/contextual-related-posts). It is the fastest way to get support as I monitor the forums regularly. I also provide [premium *paid* support via email](https://webberzone.com/support/).
48
  * Customise which HTML tags to use for displaying the output in case you don't prefer the default `list` format
49
  * **Extendable code**: CRP has tonnes of filters and actions that allow any developer to easily add features, edit outputs, etc.
50
 
51
+ ### mySQL FULLTEXT indices
52
+
53
+ On activation, the plugin creates three mySQL FULLTEXT indices (or indexes) that are then used to find the related posts in the `*_posts`. These are for `post_content`, `post_title` and `(post_title,post_content)`. If you're running a multisite installation, then this is created for each of the blogs on activation. All these indices occupy space in your mySQL database but are essential for the plugin to run.
54
+
55
+ You have two sets of options in the settings page which allows you to remove these indices when you deactivate or delete the plugin. The latter is true by default.
56
+
57
  ### Extensions/Addons
58
 
59
  * [Related Posts by Categories and Tags](https://webberzone.com/downloads/crp-taxonomy/)
96
 
97
  ## Frequently Asked Questions
98
 
99
+ Check out the [FAQ on the plugin page](https://wordpress.org/plugins/contextual-related-posts/faq/) or the [knowledge base](https://webberzone.com/support/section/contextual-related-posts/)
100
 
101
  If your question isn't listed there, please create a new post at the [WordPress.org support forum](https://wordpress.org/support/plugin/contextual-related-posts). It is the fastest way to get support as I monitor the forums regularly. I also provide [premium *paid* support via email](https://webberzone.com/support/).
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 a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
18
- * Version: 2.9.2
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
@@ -30,6 +30,18 @@ if ( ! defined( 'WPINC' ) ) {
30
  die;
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  /**
34
  * Holds the filesystem directory path (with trailing slash) for Contextual Related Posts.
35
  *
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: 2.9.3
19
  * Author: WebberZone
20
  * Author URI: https://webberzone.com
21
  * License: GPL-2.0+
30
  die;
31
  }
32
 
33
+ /**
34
+ * Holds the version of Contextual Related Posts.
35
+ *
36
+ * @since 2.9.3
37
+ *
38
+ * @var string Contextual Related Posts Version.
39
+ */
40
+ if ( ! defined( 'CRP_VERSION' ) ) {
41
+ define( 'CRP_VERSION', '2.9.3' );
42
+ }
43
+
44
+
45
  /**
46
  * Holds the filesystem directory path (with trailing slash) for Contextual Related Posts.
47
  *
includes/admin/default-settings.php CHANGED
@@ -57,21 +57,21 @@ function crp_get_registered_settings() {
57
  function crp_settings_general() {
58
 
59
  $settings = array(
60
- 'cache_posts' => array(
61
  'id' => 'cache_posts',
62
  'name' => esc_html__( 'Cache posts only', 'contextual-related-posts' ),
63
  'desc' => esc_html__( 'Enabling this will only cache the related posts but not the entire HTML output. This gives you more flexibility at marginally lower performance. Use this if you only have the related posts called with the same set of parameters.', 'contextual-related-posts' ),
64
  'type' => 'checkbox',
65
  'options' => false,
66
  ),
67
- 'cache' => array(
68
  'id' => 'cache',
69
  'name' => esc_html__( 'Cache HTML output', 'contextual-related-posts' ),
70
  'desc' => esc_html__( 'Only works if the previous option is disabled. Enabling this will cache the entire HTML generated when the post is visited the first time. The cache is cleaned when you save this page. Highly recommended particularly on busy sites.', 'contextual-related-posts' ),
71
  'type' => 'checkbox',
72
  'options' => false,
73
  ),
74
- 'add_to' => array(
75
  'id' => 'add_to',
76
  'name' => esc_html__( 'Automatically add related posts to', 'contextual-related-posts' ),
77
  /* translators: 1: Code. */
@@ -91,14 +91,14 @@ function crp_settings_general() {
91
  'other_archives' => esc_html__( 'Other archives', 'contextual-related-posts' ),
92
  ),
93
  ),
94
- 'content_filter_priority' => array(
95
  'id' => 'content_filter_priority',
96
  'name' => esc_html__( 'Display location priority', 'contextual-related-posts' ),
97
  'desc' => esc_html__( 'Select the relative position of the related posts in the post content. A higher number pushes the related posts later in the content. Any number below 10 is not recommended.', 'contextual-related-posts' ),
98
  'type' => 'number',
99
  'options' => '999',
100
  ),
101
- 'insert_after_paragraph' => array(
102
  'id' => 'insert_after_paragraph',
103
  'name' => esc_html__( 'Insert after paragraph number', 'contextual-related-posts' ),
104
  'desc' => esc_html__( 'Enter 0 to display the related posts before the post content, -1 to display this at the end or a number to insert it after that paragraph number. If your post has less paragraphs, related posts will be displayed at the end.', 'contextual-related-posts' ),
@@ -106,49 +106,56 @@ function crp_settings_general() {
106
  'options' => '-1',
107
  'min' => '-1',
108
  ),
109
- 'disable_on_mobile' => array(
110
  'id' => 'disable_on_mobile',
111
  'name' => esc_html__( 'Disable on mobile devices', 'contextual-related-posts' ),
112
  'desc' => esc_html__( 'Disable display of related posts on mobile devices. Might not always work with caching plugins.', 'contextual-related-posts' ),
113
  'type' => 'checkbox',
114
  'options' => false,
115
  ),
116
- 'disable_on_amp' => array(
117
  'id' => 'disable_on_amp',
118
  'name' => esc_html__( 'Disable on AMP pages', 'contextual-related-posts' ),
119
  'desc' => esc_html__( 'Disable display of related posts on AMP pages.', 'contextual-related-posts' ),
120
  'type' => 'checkbox',
121
  'options' => false,
122
  ),
123
- 'uninstall_options' => array(
124
  'id' => 'uninstall_options',
125
  'name' => esc_html__( 'Delete options on uninstall', 'contextual-related-posts' ),
126
  'desc' => esc_html__( 'If this is checked, all settings related to Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
127
  'type' => 'checkbox',
128
  'options' => true,
129
  ),
130
- 'uninstall_indices' => array(
131
  'id' => 'uninstall_indices',
132
  'name' => esc_html__( 'Delete FULLTEXT indices on uninstall', 'contextual-related-posts' ),
133
  'desc' => esc_html__( 'If this is checked, FULLTEXT indices generated by Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
134
  'type' => 'checkbox',
135
  'options' => true,
136
  ),
137
- 'show_metabox' => array(
 
 
 
 
 
 
 
138
  'id' => 'show_metabox',
139
  'name' => esc_html__( 'Show metabox', 'contextual-related-posts' ),
140
  'desc' => esc_html__( 'This will add the Contextual Related Posts metabox on Edit Posts or Add New Posts screens. Also applies to Pages and Custom Post Types.', 'contextual-related-posts' ),
141
  'type' => 'checkbox',
142
  'options' => true,
143
  ),
144
- 'show_metabox_admins' => array(
145
  'id' => 'show_metabox_admins',
146
  'name' => esc_html__( 'Limit meta box to Admins only', 'contextual-related-posts' ),
147
  'desc' => esc_html__( 'If selected, the meta box will be hidden from anyone who is not an Admin. By default, Contributors and above will be able to see the meta box. Applies only if the above option is selected.', 'contextual-related-posts' ),
148
  'type' => 'checkbox',
149
  'options' => false,
150
  ),
151
- 'show_credit' => array(
152
  'id' => 'show_credit',
153
  'name' => esc_html__( 'Link to Contextual Related Posts plugin page', 'contextual-related-posts' ),
154
  'desc' => esc_html__( 'A no-follow link to the plugin homepage will be added as the last item of the related posts.', 'contextual-related-posts' ),
57
  function crp_settings_general() {
58
 
59
  $settings = array(
60
+ 'cache_posts' => array(
61
  'id' => 'cache_posts',
62
  'name' => esc_html__( 'Cache posts only', 'contextual-related-posts' ),
63
  'desc' => esc_html__( 'Enabling this will only cache the related posts but not the entire HTML output. This gives you more flexibility at marginally lower performance. Use this if you only have the related posts called with the same set of parameters.', 'contextual-related-posts' ),
64
  'type' => 'checkbox',
65
  'options' => false,
66
  ),
67
+ 'cache' => array(
68
  'id' => 'cache',
69
  'name' => esc_html__( 'Cache HTML output', 'contextual-related-posts' ),
70
  'desc' => esc_html__( 'Only works if the previous option is disabled. Enabling this will cache the entire HTML generated when the post is visited the first time. The cache is cleaned when you save this page. Highly recommended particularly on busy sites.', 'contextual-related-posts' ),
71
  'type' => 'checkbox',
72
  'options' => false,
73
  ),
74
+ 'add_to' => array(
75
  'id' => 'add_to',
76
  'name' => esc_html__( 'Automatically add related posts to', 'contextual-related-posts' ),
77
  /* translators: 1: Code. */
91
  'other_archives' => esc_html__( 'Other archives', 'contextual-related-posts' ),
92
  ),
93
  ),
94
+ 'content_filter_priority' => array(
95
  'id' => 'content_filter_priority',
96
  'name' => esc_html__( 'Display location priority', 'contextual-related-posts' ),
97
  'desc' => esc_html__( 'Select the relative position of the related posts in the post content. A higher number pushes the related posts later in the content. Any number below 10 is not recommended.', 'contextual-related-posts' ),
98
  'type' => 'number',
99
  'options' => '999',
100
  ),
101
+ 'insert_after_paragraph' => array(
102
  'id' => 'insert_after_paragraph',
103
  'name' => esc_html__( 'Insert after paragraph number', 'contextual-related-posts' ),
104
  'desc' => esc_html__( 'Enter 0 to display the related posts before the post content, -1 to display this at the end or a number to insert it after that paragraph number. If your post has less paragraphs, related posts will be displayed at the end.', 'contextual-related-posts' ),
106
  'options' => '-1',
107
  'min' => '-1',
108
  ),
109
+ 'disable_on_mobile' => array(
110
  'id' => 'disable_on_mobile',
111
  'name' => esc_html__( 'Disable on mobile devices', 'contextual-related-posts' ),
112
  'desc' => esc_html__( 'Disable display of related posts on mobile devices. Might not always work with caching plugins.', 'contextual-related-posts' ),
113
  'type' => 'checkbox',
114
  'options' => false,
115
  ),
116
+ 'disable_on_amp' => array(
117
  'id' => 'disable_on_amp',
118
  'name' => esc_html__( 'Disable on AMP pages', 'contextual-related-posts' ),
119
  'desc' => esc_html__( 'Disable display of related posts on AMP pages.', 'contextual-related-posts' ),
120
  'type' => 'checkbox',
121
  'options' => false,
122
  ),
123
+ 'uninstall_options' => array(
124
  'id' => 'uninstall_options',
125
  'name' => esc_html__( 'Delete options on uninstall', 'contextual-related-posts' ),
126
  'desc' => esc_html__( 'If this is checked, all settings related to Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
127
  'type' => 'checkbox',
128
  'options' => true,
129
  ),
130
+ 'uninstall_indices' => array(
131
  'id' => 'uninstall_indices',
132
  'name' => esc_html__( 'Delete FULLTEXT indices on uninstall', 'contextual-related-posts' ),
133
  'desc' => esc_html__( 'If this is checked, FULLTEXT indices generated by Contextual Related Posts are removed from the database if you choose to uninstall/delete the plugin.', 'contextual-related-posts' ),
134
  'type' => 'checkbox',
135
  'options' => true,
136
  ),
137
+ 'uninstall_indices_deactivate' => array(
138
+ 'id' => 'uninstall_indices_deactivate',
139
+ 'name' => esc_html__( 'Delete FULLTEXT indices on deactivate', 'contextual-related-posts' ),
140
+ 'desc' => esc_html__( 'If this is checked, FULLTEXT indices generated by Contextual Related Posts are removed from the database if you choose to deactivate the plugin.', 'contextual-related-posts' ),
141
+ 'type' => 'checkbox',
142
+ 'options' => false,
143
+ ),
144
+ 'show_metabox' => array(
145
  'id' => 'show_metabox',
146
  'name' => esc_html__( 'Show metabox', 'contextual-related-posts' ),
147
  'desc' => esc_html__( 'This will add the Contextual Related Posts metabox on Edit Posts or Add New Posts screens. Also applies to Pages and Custom Post Types.', 'contextual-related-posts' ),
148
  'type' => 'checkbox',
149
  'options' => true,
150
  ),
151
+ 'show_metabox_admins' => array(
152
  'id' => 'show_metabox_admins',
153
  'name' => esc_html__( 'Limit meta box to Admins only', 'contextual-related-posts' ),
154
  'desc' => esc_html__( 'If selected, the meta box will be hidden from anyone who is not an Admin. By default, Contributors and above will be able to see the meta box. Applies only if the above option is selected.', 'contextual-related-posts' ),
155
  'type' => 'checkbox',
156
  'options' => false,
157
  ),
158
+ 'show_credit' => array(
159
  'id' => 'show_credit',
160
  'name' => esc_html__( 'Link to Contextual Related Posts plugin page', 'contextual-related-posts' ),
161
  'desc' => esc_html__( 'A no-follow link to the plugin homepage will be added as the last item of the related posts.', 'contextual-related-posts' ),
includes/deprecated.php CHANGED
@@ -180,7 +180,7 @@ function crp_default_options() {
180
 
181
  _deprecated_function( __FUNCTION__, '2.6.0' );
182
 
183
- $title = __( '<h3>Related Posts:</h3>', 'contextual-related-posts' );
184
 
185
  $blank_output_text = __( 'No related posts found', 'contextual-related-posts' );
186
 
180
 
181
  _deprecated_function( __FUNCTION__, '2.6.0' );
182
 
183
+ $title = '<h3>' . __( 'Related Posts', 'contextual-related-posts' ) . ':</h3>';
184
 
185
  $blank_output_text = __( 'No related posts found', 'contextual-related-posts' );
186
 
includes/main-query.php CHANGED
@@ -55,7 +55,7 @@ function get_crp( $args = array() ) {
55
  *
56
  * @param bool $short_circuit Short circuit filter.
57
  * @param object $post Current Post object.
58
- * @param array $args Complete set of arguments.
59
  */
60
  $short_circuit = apply_filters( 'get_crp_short_circuit', $short_circuit, $post, $args );
61
 
@@ -130,11 +130,13 @@ function get_crp( $args = array() ) {
130
  /**
131
  * Filter the classes added to the div wrapper of the Contextual Related Posts.
132
  *
133
- * @since 2.2.3
 
134
  *
135
- * @param string $post_classes Post classes string.
 
136
  */
137
- $post_classes = apply_filters( 'crp_post_class', $post_classes );
138
 
139
  $output = '<div class="' . $post_classes . '">';
140
 
@@ -164,11 +166,13 @@ function get_crp( $args = array() ) {
164
  /**
165
  * Filter the post ID for each result. Allows a custom function to hook in and change the ID if needed.
166
  *
167
- * @since 1.9
 
168
  *
169
- * @param int $resultid ID of the post
 
170
  */
171
- $resultid = apply_filters( 'crp_post_id', $resultid );
172
 
173
  $result = get_post( $resultid ); // Let's get the Post using the ID.
174
 
@@ -221,11 +225,13 @@ function get_crp( $args = array() ) {
221
  /**
222
  * Filter the clearfix div tag. This is included after the closing tag to clear any miscellaneous floating elements;
223
  *
224
- * @since 2.0.0
 
225
  *
226
- * @param string $clearfix Contains: <div style="clear:both"></div>
 
227
  */
228
- $output .= apply_filters( 'crp_clearfix', $clearfix );
229
 
230
  } else {
231
  $output .= ( $args['blank_output'] ) ? ' ' : '<p>' . $args['blank_output_text'] . '</p>';
@@ -260,8 +266,8 @@ function get_crp( $args = array() ) {
260
  *
261
  * @since 1.9.1
262
  *
263
- * @param string $output Formatted list of related posts
264
- * @param array $args Complete set of arguments
265
  */
266
  return apply_filters( 'get_crp', $output, $args );
267
  }
@@ -289,9 +295,9 @@ function get_crp_posts_id( $args = array() ) {
289
  $match_fields = '';
290
 
291
  $defaults = array(
292
- 'postid' => false, // Get related posts for a specific post ID.
293
- 'strict_limit' => true, // If this is set to false, then it will fetch 3x posts.
294
- 'offset' => 0, // Offset the related posts returned by this number.
295
  );
296
  $defaults = array_merge( $defaults, $crp_settings );
297
 
@@ -356,9 +362,9 @@ function get_crp_posts_id( $args = array() ) {
356
  *
357
  * @since 2.2.0
358
  *
359
- * @param array $post_types Array of post types to filter by.
360
- * @param int $source_post->ID Post ID.
361
- * @param array $args Arguments array.
362
  */
363
  $post_types = apply_filters( 'crp_posts_post_types', $post_types, $source_post->ID, $args );
364
 
@@ -388,22 +394,26 @@ function get_crp_posts_id( $args = array() ) {
388
  /**
389
  * Filter the fields that are to be matched.
390
  *
391
- * @since 2.2.0
 
392
  *
393
- * @param array $match_fields Array of fields to be matched
394
- * @param int $source_post->ID Post ID
 
395
  */
396
- $match_fields = apply_filters( 'crp_posts_match_fields', $match_fields, $source_post->ID );
397
 
398
  /**
399
  * Filter the content of the fields that are to be matched.
400
  *
401
- * @since 2.2.0
 
402
  *
403
- * @param array $match_fields_content Array of content of fields to be matched
404
- * @param int $source_post->ID Post ID
 
405
  */
406
- $match_fields_content = apply_filters( 'crp_posts_match_fields_content', $match_fields_content, $source_post->ID );
407
 
408
  // Convert our arrays into their corresponding strings after they have been filtered.
409
  $match_fields = implode( ',', $match_fields );
@@ -436,14 +446,16 @@ function get_crp_posts_id( $args = array() ) {
436
  * Filter the MATCH clause of the query.
437
  *
438
  * @since 2.1.0
439
- * @since 2.9.0 $match_fields parameter added.
 
440
  *
441
- * @param string $match The MATCH section of the WHERE clause of the query.
442
- * @param string $stuff String to match fulltext with.
443
- * @param int $source_post->ID Post ID.
444
- * @param string $match_fields Fields to match.
 
445
  */
446
- $match = apply_filters( 'crp_posts_match', $match, $stuff, $source_post->ID, $match_fields );
447
 
448
  // Create the maximum date limit. Show posts before today.
449
  $now_clause = $wpdb->prepare( " AND $wpdb->posts.post_date < %s ", $now );
@@ -451,12 +463,14 @@ function get_crp_posts_id( $args = array() ) {
451
  /**
452
  * Filter the Maximum date clause of the query.
453
  *
454
- * @since 2.1.0
 
455
  *
456
- * @param string $now_clause The Maximum date of the WHERE clause of the query.
457
- * @param int $source_post->ID Post ID
 
458
  */
459
- $now_clause = apply_filters( 'crp_posts_now_date', $now_clause, $source_post->ID );
460
 
461
  // Create the minimum date limit. Show posts after the date specified.
462
  $from_clause = ( 0 === absint( $args['daily_range'] ) ) ? '' : $wpdb->prepare( " AND $wpdb->posts.post_date >= %s ", $from_date );
@@ -464,12 +478,14 @@ function get_crp_posts_id( $args = array() ) {
464
  /**
465
  * Filter the Maximum date clause of the query.
466
  *
467
- * @since 2.1.0
 
468
  *
469
- * @param string $from_clause The Minimum date of the WHERE clause of the query.
470
- * @param int $source_post->ID Post ID
 
471
  */
472
- $from_clause = apply_filters( 'crp_posts_from_date', $from_clause, $source_post->ID );
473
 
474
  // Create the base WHERE clause.
475
  $where = $match;
@@ -489,10 +505,12 @@ function get_crp_posts_id( $args = array() ) {
489
  * Filter exclude post IDs array.
490
  *
491
  * @since 2.3.0
 
492
  *
493
- * @param array $exclude_post_ids Array of post IDs.
 
494
  */
495
- $exclude_post_ids = apply_filters( 'crp_exclude_post_ids', $exclude_post_ids );
496
 
497
  // Convert it back to string.
498
  $exclude_post_ids = implode( ',', array_filter( array_filter( $exclude_post_ids, 'absint' ) ) );
@@ -515,72 +533,86 @@ function get_crp_posts_id( $args = array() ) {
515
  /**
516
  * Filter the SELECT clause of the query.
517
  *
518
- * @since 2.0.0
 
519
  *
520
- * @param string $fields The SELECT clause of the query.
521
- * @param int $source_post->ID Post ID
 
522
  */
523
- $fields = apply_filters( 'crp_posts_fields', $fields, $source_post->ID );
524
 
525
  /**
526
  * Filter the JOIN clause of the query.
527
  *
528
- * @since 2.0.0
 
529
  *
530
- * @param string $join The JOIN clause of the query.
531
- * @param int $source_post->ID Post ID
 
532
  */
533
- $join = apply_filters( 'crp_posts_join', $join, $source_post->ID );
534
 
535
  /**
536
  * Filter the WHERE clause of the query.
537
  *
538
- * @since 2.0.0
 
539
  *
540
- * @param string $where The WHERE clause of the query.
541
- * @param int $source_post->ID Post ID
 
542
  */
543
- $where = apply_filters( 'crp_posts_where', $where, $source_post->ID );
544
 
545
  /**
546
  * Filter the GROUP BY clause of the query.
547
  *
548
- * @since 2.0.0
 
549
  *
550
- * @param string $groupby The GROUP BY clause of the query.
551
- * @param int $source_post->ID Post ID
 
552
  */
553
- $groupby = apply_filters( 'crp_posts_groupby', $groupby, $source_post->ID );
554
 
555
  /**
556
  * Filter the HAVING clause of the query.
557
  *
558
- * @since 2.2.0
 
559
  *
560
- * @param string $having The HAVING clause of the query.
561
- * @param int $source_post->ID Post ID
 
562
  */
563
- $having = apply_filters( 'crp_posts_having', $having, $source_post->ID );
564
 
565
  /**
566
  * Filter the ORDER BY clause of the query.
567
  *
568
- * @since 2.0.0
 
569
  *
570
- * @param string $orderby The ORDER BY clause of the query.
571
- * @param int $source_post->ID Post ID
 
572
  */
573
- $orderby = apply_filters( 'crp_posts_orderby', $orderby, $source_post->ID );
574
 
575
  /**
576
  * Filter the LIMIT clause of the query.
577
  *
578
- * @since 2.0.0
 
579
  *
580
- * @param string $limits The LIMIT clause of the query.
581
- * @param int $source_post->ID Post ID
 
582
  */
583
- $limits = apply_filters( 'crp_posts_limits', $limits, $source_post->ID );
584
 
585
  if ( ! empty( $groupby ) ) {
586
  $groupby = 'GROUP BY ' . $groupby;
@@ -606,7 +638,7 @@ function get_crp_posts_id( $args = array() ) {
606
  *
607
  * @param bool $short_circuit Short circuit filter.
608
  * @param object $source_post Current Post object.
609
- * @param array $args Complete set of arguments.
610
  * @param string $sql SQL clause.
611
  * @param string $fields The SELECT clause of the query.
612
  * @param string $join The JOIN clause of the query.
@@ -661,11 +693,13 @@ function get_crp_posts_id( $args = array() ) {
661
  /**
662
  * Filter object containing the post IDs.
663
  *
664
- * @since 1.9
 
665
  *
666
- * @param object $results Object containing the related post IDs
 
667
  */
668
- return apply_filters( 'get_crp_posts_id', $results );
669
  }
670
 
671
 
55
  *
56
  * @param bool $short_circuit Short circuit filter.
57
  * @param object $post Current Post object.
58
+ * @param array $args Arguments array.
59
  */
60
  $short_circuit = apply_filters( 'get_crp_short_circuit', $short_circuit, $post, $args );
61
 
130
  /**
131
  * Filter the classes added to the div wrapper of the Contextual Related Posts.
132
  *
133
+ * @since 2.2.3
134
+ * @since 2.9.3 Added $args
135
  *
136
+ * @param string $post_classes Post classes string.
137
+ * @param array $args Arguments array.
138
  */
139
+ $post_classes = apply_filters( 'crp_post_class', $post_classes, $args );
140
 
141
  $output = '<div class="' . $post_classes . '">';
142
 
166
  /**
167
  * Filter the post ID for each result. Allows a custom function to hook in and change the ID if needed.
168
  *
169
+ * @since 1.9
170
+ * @since 2.9.3 Added $args
171
  *
172
+ * @param int $resultid ID of the post
173
+ * @param array $args Arguments array.
174
  */
175
+ $resultid = apply_filters( 'crp_post_id', $resultid, $args );
176
 
177
  $result = get_post( $resultid ); // Let's get the Post using the ID.
178
 
225
  /**
226
  * Filter the clearfix div tag. This is included after the closing tag to clear any miscellaneous floating elements;
227
  *
228
+ * @since 2.0.0
229
+ * @since 2.9.3 Added $args
230
  *
231
+ * @param string $clearfix Contains: <div style="clear:both"></div>
232
+ * @param array $args Arguments array.
233
  */
234
+ $output .= apply_filters( 'crp_clearfix', $clearfix, $args );
235
 
236
  } else {
237
  $output .= ( $args['blank_output'] ) ? ' ' : '<p>' . $args['blank_output_text'] . '</p>';
266
  *
267
  * @since 1.9.1
268
  *
269
+ * @param string $output Formatted list of related posts.
270
+ * @param array $args Arguments array.
271
  */
272
  return apply_filters( 'get_crp', $output, $args );
273
  }
295
  $match_fields = '';
296
 
297
  $defaults = array(
298
+ 'postid' => false, // Get related posts for a specific post ID.
299
+ 'strict_limit' => true, // If this is set to false, then it will fetch 3x posts.
300
+ 'offset' => 0, // Offset the related posts returned by this number.
301
  );
302
  $defaults = array_merge( $defaults, $crp_settings );
303
 
362
  *
363
  * @since 2.2.0
364
  *
365
+ * @param array $post_types Array of post types to filter by.
366
+ * @param int $source_post->ID Post ID.
367
+ * @param array $args Arguments array.
368
  */
369
  $post_types = apply_filters( 'crp_posts_post_types', $post_types, $source_post->ID, $args );
370
 
394
  /**
395
  * Filter the fields that are to be matched.
396
  *
397
+ * @since 2.2.0
398
+ * @since 2.9.3 Added $args
399
  *
400
+ * @param array $match_fields Array of fields to be matched
401
+ * @param int $source_post->ID Post ID
402
+ * @param array $args Arguments array.
403
  */
404
+ $match_fields = apply_filters( 'crp_posts_match_fields', $match_fields, $source_post->ID, $args );
405
 
406
  /**
407
  * Filter the content of the fields that are to be matched.
408
  *
409
+ * @since 2.2.0
410
+ * @since 2.9.3 Added $args
411
  *
412
+ * @param array $match_fields_content Array of content of fields to be matched
413
+ * @param int $source_post->ID Post ID
414
+ * @param array $args Arguments array.
415
  */
416
+ $match_fields_content = apply_filters( 'crp_posts_match_fields_content', $match_fields_content, $source_post->ID, $args );
417
 
418
  // Convert our arrays into their corresponding strings after they have been filtered.
419
  $match_fields = implode( ',', $match_fields );
446
  * Filter the MATCH clause of the query.
447
  *
448
  * @since 2.1.0
449
+ * @since 2.9.0 Added $match_fields
450
+ * @since 2.9.3 Added $args
451
  *
452
+ * @param string $match The MATCH section of the WHERE clause of the query.
453
+ * @param string $stuff String to match fulltext with.
454
+ * @param int $source_post->ID Post ID.
455
+ * @param string $match_fields Fields to match.
456
+ * @param array $args Arguments array.
457
  */
458
+ $match = apply_filters( 'crp_posts_match', $match, $stuff, $source_post->ID, $match_fields, $args );
459
 
460
  // Create the maximum date limit. Show posts before today.
461
  $now_clause = $wpdb->prepare( " AND $wpdb->posts.post_date < %s ", $now );
463
  /**
464
  * Filter the Maximum date clause of the query.
465
  *
466
+ * @since 2.1.0
467
+ * @since 2.9.3 Added $args
468
  *
469
+ * @param string $now_clause The Maximum date of the WHERE clause of the query.
470
+ * @param int $source_post->ID Post ID
471
+ * @param array $args Arguments array.
472
  */
473
+ $now_clause = apply_filters( 'crp_posts_now_date', $now_clause, $source_post->ID, $args );
474
 
475
  // Create the minimum date limit. Show posts after the date specified.
476
  $from_clause = ( 0 === absint( $args['daily_range'] ) ) ? '' : $wpdb->prepare( " AND $wpdb->posts.post_date >= %s ", $from_date );
478
  /**
479
  * Filter the Maximum date clause of the query.
480
  *
481
+ * @since 2.1.0
482
+ * @since 2.9.3 Added $args
483
  *
484
+ * @param string $from_clause The Minimum date of the WHERE clause of the query.
485
+ * @param int $source_post->ID Post ID
486
+ * @param array $args Arguments array.
487
  */
488
+ $from_clause = apply_filters( 'crp_posts_from_date', $from_clause, $source_post->ID, $args );
489
 
490
  // Create the base WHERE clause.
491
  $where = $match;
505
  * Filter exclude post IDs array.
506
  *
507
  * @since 2.3.0
508
+ * @since 2.9.3 Added $args
509
  *
510
+ * @param array $exclude_post_ids Array of post IDs.
511
+ * @param array $args Arguments array.
512
  */
513
+ $exclude_post_ids = apply_filters( 'crp_exclude_post_ids', $exclude_post_ids, $args );
514
 
515
  // Convert it back to string.
516
  $exclude_post_ids = implode( ',', array_filter( array_filter( $exclude_post_ids, 'absint' ) ) );
533
  /**
534
  * Filter the SELECT clause of the query.
535
  *
536
+ * @since 2.0.0
537
+ * @since 2.9.3 Added $args
538
  *
539
+ * @param string $fields The SELECT clause of the query.
540
+ * @param int $source_post->ID Post ID
541
+ * @param array $args Arguments array.
542
  */
543
+ $fields = apply_filters( 'crp_posts_fields', $fields, $source_post->ID, $args );
544
 
545
  /**
546
  * Filter the JOIN clause of the query.
547
  *
548
+ * @since 2.0.0
549
+ * @since 2.9.3 Added $args
550
  *
551
+ * @param string $join The JOIN clause of the query.
552
+ * @param int $source_post->ID Post ID
553
+ * @param array $args Arguments array.
554
  */
555
+ $join = apply_filters( 'crp_posts_join', $join, $source_post->ID, $args );
556
 
557
  /**
558
  * Filter the WHERE clause of the query.
559
  *
560
+ * @since 2.0.0
561
+ * @since 2.9.3 Added $args
562
  *
563
+ * @param string $where The WHERE clause of the query.
564
+ * @param int $source_post->ID Post ID
565
+ * @param array $args Arguments array.
566
  */
567
+ $where = apply_filters( 'crp_posts_where', $where, $source_post->ID, $args );
568
 
569
  /**
570
  * Filter the GROUP BY clause of the query.
571
  *
572
+ * @since 2.0.0
573
+ * @since 2.9.3 Added $args
574
  *
575
+ * @param string $groupby The GROUP BY clause of the query.
576
+ * @param int $source_post->ID Post ID
577
+ * @param array $args Arguments array.
578
  */
579
+ $groupby = apply_filters( 'crp_posts_groupby', $groupby, $source_post->ID, $args );
580
 
581
  /**
582
  * Filter the HAVING clause of the query.
583
  *
584
+ * @since 2.2.0
585
+ * @since 2.9.3 Added $args
586
  *
587
+ * @param string $having The HAVING clause of the query.
588
+ * @param int $source_post->ID Post ID
589
+ * @param array $args Arguments array.
590
  */
591
+ $having = apply_filters( 'crp_posts_having', $having, $source_post->ID, $args );
592
 
593
  /**
594
  * Filter the ORDER BY clause of the query.
595
  *
596
+ * @since 2.0.0
597
+ * @since 2.9.3 Added $args
598
  *
599
+ * @param string $orderby The ORDER BY clause of the query.
600
+ * @param int $source_post->ID Post ID
601
+ * @param array $args Arguments array.
602
  */
603
+ $orderby = apply_filters( 'crp_posts_orderby', $orderby, $source_post->ID, $args );
604
 
605
  /**
606
  * Filter the LIMIT clause of the query.
607
  *
608
+ * @since 2.0.0
609
+ * @since 2.9.3 Added $args
610
  *
611
+ * @param string $limits The LIMIT clause of the query.
612
+ * @param int $source_post->ID Post ID
613
+ * @param array $args Arguments array.
614
  */
615
+ $limits = apply_filters( 'crp_posts_limits', $limits, $source_post->ID, $args );
616
 
617
  if ( ! empty( $groupby ) ) {
618
  $groupby = 'GROUP BY ' . $groupby;
638
  *
639
  * @param bool $short_circuit Short circuit filter.
640
  * @param object $source_post Current Post object.
641
+ * @param array $args Arguments array.
642
  * @param string $sql SQL clause.
643
  * @param string $fields The SELECT clause of the query.
644
  * @param string $join The JOIN clause of the query.
693
  /**
694
  * Filter object containing the post IDs.
695
  *
696
+ * @since 1.9
697
+ * @since 2.9.3 Added $args
698
  *
699
+ * @param object $results Object containing the related post IDs
700
+ * @param array $args Arguments array.
701
  */
702
+ return apply_filters( 'get_crp_posts_id', $results, $args );
703
  }
704
 
705
 
includes/plugin-activator.php CHANGED
@@ -57,16 +57,57 @@ register_activation_hook( CRP_PLUGIN_FILE, 'crp_activate' );
57
  * @since 2.0.0
58
  */
59
  function crp_single_activate() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  global $wpdb;
61
 
62
- $wpdb->hide_errors();
63
 
64
- crp_create_index();
 
 
 
 
 
 
 
 
 
 
65
 
66
- $wpdb->show_errors();
 
67
 
 
 
 
68
  }
 
69
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  /**
72
  * Fired when a new site is activated with a WPMU environment.
57
  * @since 2.0.0
58
  */
59
  function crp_single_activate() {
60
+ crp_create_index();
61
+ }
62
+
63
+ /**
64
+ * Fired for each blog when the plugin is deactivated.
65
+ *
66
+ * @since 2.9.3
67
+ *
68
+ * @param boolean $network_wide True if WPMU superadmin uses
69
+ * "Network Deactivate" action, false if
70
+ * WPMU is disabled or plugin is
71
+ * deactivated on an individual blog.
72
+ */
73
+ function crp_deactivate( $network_wide ) {
74
  global $wpdb;
75
 
76
+ if ( is_multisite() && $network_wide ) {
77
 
78
+ // Get all blogs in the network and activate plugin on each one.
79
+ $blog_ids = $wpdb->get_col( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
80
+ "
81
+ SELECT blog_id FROM $wpdb->blogs
82
+ WHERE archived = '0' AND spam = '0' AND deleted = '0'
83
+ "
84
+ );
85
+ foreach ( $blog_ids as $blog_id ) {
86
+ switch_to_blog( $blog_id );
87
+ crp_single_deactivate();
88
+ }
89
 
90
+ // Switch back to the current blog.
91
+ restore_current_blog();
92
 
93
+ } else {
94
+ crp_single_deactivate();
95
+ }
96
  }
97
+ register_deactivation_hook( CRP_PLUGIN_FILE, 'crp_deactivate' );
98
 
99
+ /**
100
+ * Fired for each blog when the plugin is deactivated.
101
+ *
102
+ * @since 2.9.3
103
+ */
104
+ function crp_single_deactivate() {
105
+ $settings = get_option( 'crp_settings' );
106
+
107
+ if ( ! empty( $settings['uninstall_indices_deactivate'] ) ) {
108
+ crp_delete_index();
109
+ }
110
+ }
111
 
112
  /**
113
  * Fired when a new site is activated with a WPMU environment.
languages/contextual-related-posts-en_US.mo CHANGED
Binary file
languages/contextual-related-posts-en_US.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contextual Related Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-05-07 22:01+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza\n"
8
- "Language-Team: WebberZone <plugins@webberzone.com>\n"
9
  "Language: en_US\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -22,7 +22,8 @@ msgstr ""
22
  msgid "Contextual Related Posts"
23
  msgstr ""
24
 
25
- #: includes/admin/admin.php:32 includes/admin/default-settings.php:186
 
26
  msgid "Related Posts"
27
  msgstr ""
28
 
@@ -92,13 +93,13 @@ msgstr ""
92
 
93
  #: includes/admin/blocks/related-posts/index.js:173
94
  #: includes/admin/blocks/related-posts/index.min.js:1
95
- #: includes/admin/default-settings.php:233
96
  msgid "Show author"
97
  msgstr ""
98
 
99
  #: includes/admin/blocks/related-posts/index.js:178
100
  #: includes/admin/blocks/related-posts/index.min.js:1
101
- #: includes/admin/default-settings.php:226
102
  msgid "Show date"
103
  msgstr ""
104
 
@@ -135,7 +136,7 @@ msgstr ""
135
 
136
  #: includes/admin/blocks/related-posts/index.js:200
137
  #: includes/admin/blocks/related-posts/index.min.js:1
138
- #: includes/admin/default-settings.php:364
139
  msgid "Randomize posts"
140
  msgstr ""
141
 
@@ -275,179 +276,189 @@ msgid ""
275
  msgstr ""
276
 
277
  #: includes/admin/default-settings.php:139
278
- msgid "Show metabox"
279
  msgstr ""
280
 
281
  #: includes/admin/default-settings.php:140
282
  msgid ""
 
 
 
 
 
 
 
 
 
 
283
  "This will add the Contextual Related Posts metabox on Edit Posts or Add New "
284
  "Posts screens. Also applies to Pages and Custom Post Types."
285
  msgstr ""
286
 
287
- #: includes/admin/default-settings.php:146
288
  msgid "Limit meta box to Admins only"
289
  msgstr ""
290
 
291
- #: includes/admin/default-settings.php:147
292
  msgid ""
293
  "If selected, the meta box will be hidden from anyone who is not an Admin. By "
294
  "default, Contributors and above will be able to see the meta box. Applies "
295
  "only if the above option is selected."
296
  msgstr ""
297
 
298
- #: includes/admin/default-settings.php:153
299
  msgid "Link to Contextual Related Posts plugin page"
300
  msgstr ""
301
 
302
- #: includes/admin/default-settings.php:154
303
  msgid ""
304
  "A no-follow link to the plugin homepage will be added as the last item of "
305
  "the related posts."
306
  msgstr ""
307
 
308
- #: includes/admin/default-settings.php:183
309
  msgid "Heading of posts"
310
  msgstr ""
311
 
312
- #: includes/admin/default-settings.php:184
313
  msgid "Displayed before the list of the posts as a master heading"
314
  msgstr ""
315
 
316
- #: includes/admin/default-settings.php:191
317
  msgid "Show when no posts are found"
318
  msgstr ""
319
 
320
- #: includes/admin/default-settings.php:197
321
  msgid "Blank output"
322
  msgstr ""
323
 
324
- #: includes/admin/default-settings.php:198
325
  msgid "Display custom text"
326
  msgstr ""
327
 
328
- #: includes/admin/default-settings.php:203
329
  msgid "Custom text"
330
  msgstr ""
331
 
332
- #: includes/admin/default-settings.php:204
333
  msgid ""
334
  "Enter the custom text that will be displayed if the second option is "
335
  "selected above."
336
  msgstr ""
337
 
338
- #: includes/admin/default-settings.php:206 includes/deprecated.php:185
339
  msgid "No related posts found"
340
  msgstr ""
341
 
342
- #: includes/admin/default-settings.php:210
343
- #: includes/admin/default-settings.php:638
344
  msgid "Show post excerpt"
345
  msgstr ""
346
 
347
- #: includes/admin/default-settings.php:211
348
  msgid ""
349
  "If the post does not have an excerpt, the plugin will automatically create "
350
  "one containing the number of words specified in the next option."
351
  msgstr ""
352
 
353
- #: includes/admin/default-settings.php:217
354
  msgid "Length of excerpt (in words)"
355
  msgstr ""
356
 
357
- #: includes/admin/default-settings.php:227
358
  msgid ""
359
  "Displays the date of the post. Uses the same date format set in General "
360
  "Options."
361
  msgstr ""
362
 
363
- #: includes/admin/default-settings.php:240
364
  msgid "Limit post title length (in characters)"
365
  msgstr ""
366
 
367
- #: includes/admin/default-settings.php:241
368
  msgid ""
369
  "Any title longer than the number of characters set above will be cut and "
370
  "appended with an ellipsis (&hellip;)"
371
  msgstr ""
372
 
373
- #: includes/admin/default-settings.php:248
374
  msgid "Open links in new window"
375
  msgstr ""
376
 
377
- #: includes/admin/default-settings.php:255
378
  msgid "Add nofollow to links"
379
  msgstr ""
380
 
381
- #: includes/admin/default-settings.php:262
382
  msgid "Exclusion settings"
383
  msgstr ""
384
 
385
- #: includes/admin/default-settings.php:268
386
  msgid "Exclude display on these posts"
387
  msgstr ""
388
 
389
- #: includes/admin/default-settings.php:269
390
  msgid ""
391
  "Comma separated list of post, page or custom post type IDs. e.g. 188,320,500"
392
  msgstr ""
393
 
394
- #: includes/admin/default-settings.php:275
395
  msgid "Exclude display on these post types"
396
  msgstr ""
397
 
398
- #: includes/admin/default-settings.php:276
399
  msgid ""
400
  "The related posts will not display on any of the above selected post types."
401
  msgstr ""
402
 
403
- #: includes/admin/default-settings.php:282
404
  msgid "HTML to display"
405
  msgstr ""
406
 
407
- #: includes/admin/default-settings.php:288
408
  msgid "Before the list of posts"
409
  msgstr ""
410
 
411
- #: includes/admin/default-settings.php:295
412
  msgid "After the list of posts"
413
  msgstr ""
414
 
415
- #: includes/admin/default-settings.php:302
416
  msgid "Before each list item"
417
  msgstr ""
418
 
419
- #: includes/admin/default-settings.php:309
420
  msgid "After each list item"
421
  msgstr ""
422
 
423
- #: includes/admin/default-settings.php:339
424
- #: includes/admin/default-settings.php:629
425
  msgid "Number of posts to display"
426
  msgstr ""
427
 
428
- #: includes/admin/default-settings.php:340
429
  msgid ""
430
  "Maximum number of posts that will be displayed in the list. This option is "
431
  "used if you do not specify the number of posts in the widget or shortcodes"
432
  msgstr ""
433
 
434
- #: includes/admin/default-settings.php:348
435
  msgid "Related posts should be newer than"
436
  msgstr ""
437
 
438
- #: includes/admin/default-settings.php:349
439
  msgid ""
440
  "This sets the cut-off period for which posts will be displayed. e.g. setting "
441
  "it to 365 will show related posts from the last year only. Set to 0 to "
442
  "disable limiting posts by date."
443
  msgstr ""
444
 
445
- #: includes/admin/default-settings.php:356
446
  #: includes/modules/class-crp-widget.php:132
447
  msgid "Order posts"
448
  msgstr ""
449
 
450
- #: includes/admin/default-settings.php:365
451
  msgid ""
452
  "This shuffles the selected related posts. If you select to order by date in "
453
  "the previous option, then the related posts will first be sorted by date and "
@@ -455,86 +466,86 @@ msgid ""
455
  "enabled."
456
  msgstr ""
457
 
458
- #: includes/admin/default-settings.php:371
459
  msgid "Related posts based on title and content"
460
  msgstr ""
461
 
462
- #: includes/admin/default-settings.php:372
463
  msgid ""
464
  "If unchecked, only posts titles are used. Enable the cache if enabling this "
465
  "option for better performance. Each site is different, so toggle this option "
466
  "to see which setting gives you better quality related posts."
467
  msgstr ""
468
 
469
- #: includes/admin/default-settings.php:378
470
  msgid "Limit content to be compared"
471
  msgstr ""
472
 
473
- #: includes/admin/default-settings.php:380
474
  #, php-format
475
  msgid ""
476
  "This sets the maximum words of the content that will be matched. Set to 0 "
477
  "for no limit. Max value: %1$s. Only applies if you activate the above option."
478
  msgstr ""
479
 
480
- #: includes/admin/default-settings.php:388
481
  #: includes/modules/class-crp-widget.php:156
482
  msgid "Post types to include"
483
  msgstr ""
484
 
485
- #: includes/admin/default-settings.php:389
486
  msgid ""
487
  "At least one option should be selected above. Select which post types you "
488
  "want to include in the list of posts. This field can be overridden using a "
489
  "comma separated list of post types when using the manual display."
490
  msgstr ""
491
 
492
- #: includes/admin/default-settings.php:395
493
  msgid "Limit to same post type"
494
  msgstr ""
495
 
496
- #: includes/admin/default-settings.php:396
497
  msgid ""
498
  "If checked, the related posts will only be selected from the same post type "
499
  "of the current post."
500
  msgstr ""
501
 
502
- #: includes/admin/default-settings.php:402
503
  msgid "Limit to same author"
504
  msgstr ""
505
 
506
- #: includes/admin/default-settings.php:403
507
  msgid ""
508
  "If checked, the related posts will only be selected from the same author of "
509
  "the current post."
510
  msgstr ""
511
 
512
- #: includes/admin/default-settings.php:409
513
  msgid "Post/page IDs to exclude"
514
  msgstr ""
515
 
516
- #: includes/admin/default-settings.php:410
517
  msgid ""
518
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
519
  "188,320,500"
520
  msgstr ""
521
 
522
- #: includes/admin/default-settings.php:416
523
  msgid "Exclude Categories"
524
  msgstr ""
525
 
526
- #: includes/admin/default-settings.php:417
527
  msgid ""
528
  "Comma separated list of category slugs. The field above has an autocomplete "
529
  "so simply start typing in the starting letters and it will prompt you with "
530
  "options. Does not support custom taxonomies."
531
  msgstr ""
532
 
533
- #: includes/admin/default-settings.php:428
534
  msgid "Exclude category IDs"
535
  msgstr ""
536
 
537
- #: includes/admin/default-settings.php:429
538
  msgid ""
539
  "This is a readonly field that is automatically populated based on the above "
540
  "input when the settings are saved. These might differ from the IDs visible "
@@ -542,36 +553,36 @@ msgid ""
542
  "the term_taxonomy_id which is unique to this taxonomy."
543
  msgstr ""
544
 
545
- #: includes/admin/default-settings.php:459
546
- #: includes/admin/default-settings.php:645
547
  msgid "Location of the post thumbnail"
548
  msgstr ""
549
 
550
- #: includes/admin/default-settings.php:464
551
- #: includes/admin/default-settings.php:650
552
  msgid "Display thumbnails inline with posts, before title"
553
  msgstr ""
554
 
555
- #: includes/admin/default-settings.php:465
556
- #: includes/admin/default-settings.php:651
557
  msgid "Display thumbnails inline with posts, after title"
558
  msgstr ""
559
 
560
- #: includes/admin/default-settings.php:466
561
- #: includes/admin/default-settings.php:652
562
  msgid "Display only thumbnails, no text"
563
  msgstr ""
564
 
565
- #: includes/admin/default-settings.php:467
566
- #: includes/admin/default-settings.php:653
567
  msgid "Do not display thumbnails, only text"
568
  msgstr ""
569
 
570
- #: includes/admin/default-settings.php:472
571
  msgid "Thumbnail size"
572
  msgstr ""
573
 
574
- #: includes/admin/default-settings.php:473
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:475
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:485
588
- #: includes/admin/default-settings.php:658
589
  #: includes/modules/class-crp-widget.php:129
590
  msgid "Thumbnail width"
591
  msgstr ""
592
 
593
- #: includes/admin/default-settings.php:494
594
- #: includes/admin/default-settings.php:667
595
  #: includes/modules/class-crp-widget.php:124
596
  msgid "Thumbnail height"
597
  msgstr ""
598
 
599
- #: includes/admin/default-settings.php:503
600
  msgid "Hard crop thumbnails"
601
  msgstr ""
602
 
603
- #: includes/admin/default-settings.php:504
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:510
610
  msgid "Generate thumbnail sizes"
611
  msgstr ""
612
 
613
- #: includes/admin/default-settings.php:511
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:517
621
  msgid "Thumbnail size attributes"
622
  msgstr ""
623
 
624
- #: includes/admin/default-settings.php:523
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:525
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:526
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:531
641
  msgid "Thumbnail meta field name"
642
  msgstr ""
643
 
644
- #: includes/admin/default-settings.php:532
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:538
651
  msgid "Get first image"
652
  msgstr ""
653
 
654
- #: includes/admin/default-settings.php:539
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:545
662
  msgid "Use default thumbnail?"
663
  msgstr ""
664
 
665
- #: includes/admin/default-settings.php:546
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:552 includes/admin/settings-page.php:748
672
  msgid "Default thumbnail"
673
  msgstr ""
674
 
675
- #: includes/admin/default-settings.php:553
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:583
682
  msgid "Related Posts style"
683
  msgstr ""
684
 
685
- #: includes/admin/default-settings.php:591
686
  msgid "Custom CSS"
687
  msgstr ""
688
 
689
- #: includes/admin/default-settings.php:593
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:623
697
  msgid "About this tab"
698
  msgstr ""
699
 
700
- #: includes/admin/default-settings.php:624
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,42 +716,42 @@ msgid ""
705
  "way to style the related posts in the feed."
706
  msgstr ""
707
 
708
- #: includes/admin/default-settings.php:744
709
  msgid "No styles"
710
  msgstr ""
711
 
712
- #: includes/admin/default-settings.php:745
713
  msgid "Select this option if you plan to add your own styles"
714
  msgstr ""
715
 
716
- #: includes/admin/default-settings.php:749
717
  msgid "Text only"
718
  msgstr ""
719
 
720
- #: includes/admin/default-settings.php:750
721
  msgid "Disable thumbnails and no longer include the default style sheet"
722
  msgstr ""
723
 
724
- #: includes/admin/default-settings.php:754
725
  msgid "Rounded thumbnails"
726
  msgstr ""
727
 
728
- #: includes/admin/default-settings.php:755
729
  msgid ""
730
  "Enabling this option will turn on the thumbnails and force their width and "
731
  "height. It will also turn off the display of the author, excerpt and date if "
732
  "already enabled. Disabling this option will not revert any settings."
733
  msgstr ""
734
 
735
- #: includes/admin/default-settings.php:778
736
  msgid "By relevance"
737
  msgstr ""
738
 
739
- #: includes/admin/default-settings.php:779
740
  msgid "Randomly"
741
  msgstr ""
742
 
743
- #: includes/admin/default-settings.php:780
744
  msgid "By date"
745
  msgstr ""
746
 
@@ -1192,11 +1203,7 @@ msgstr ""
1192
  msgid "Follow me"
1193
  msgstr ""
1194
 
1195
- #: includes/deprecated.php:183
1196
- msgid "<h3>Related Posts:</h3>"
1197
- msgstr ""
1198
-
1199
- #: includes/main-query.php:239
1200
  #, php-format
1201
  msgid ""
1202
  "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: 2020-06-14 22:38+0100\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ajay D'Souza\n"
8
+ "Language-Team: WebberZone\n"
9
  "Language: en_US\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
22
  msgid "Contextual Related Posts"
23
  msgstr ""
24
 
25
+ #: includes/admin/admin.php:32 includes/admin/default-settings.php:193
26
+ #: includes/deprecated.php:183
27
  msgid "Related Posts"
28
  msgstr ""
29
 
93
 
94
  #: includes/admin/blocks/related-posts/index.js:173
95
  #: includes/admin/blocks/related-posts/index.min.js:1
96
+ #: includes/admin/default-settings.php:240
97
  msgid "Show author"
98
  msgstr ""
99
 
100
  #: includes/admin/blocks/related-posts/index.js:178
101
  #: includes/admin/blocks/related-posts/index.min.js:1
102
+ #: includes/admin/default-settings.php:233
103
  msgid "Show date"
104
  msgstr ""
105
 
136
 
137
  #: includes/admin/blocks/related-posts/index.js:200
138
  #: includes/admin/blocks/related-posts/index.min.js:1
139
+ #: includes/admin/default-settings.php:371
140
  msgid "Randomize posts"
141
  msgstr ""
142
 
276
  msgstr ""
277
 
278
  #: includes/admin/default-settings.php:139
279
+ msgid "Delete FULLTEXT indices on deactivate"
280
  msgstr ""
281
 
282
  #: includes/admin/default-settings.php:140
283
  msgid ""
284
+ "If this is checked, FULLTEXT indices generated by Contextual Related Posts "
285
+ "are removed from the database if you choose to deactivate the plugin."
286
+ msgstr ""
287
+
288
+ #: includes/admin/default-settings.php:146
289
+ msgid "Show metabox"
290
+ msgstr ""
291
+
292
+ #: includes/admin/default-settings.php:147
293
+ msgid ""
294
  "This will add the Contextual Related Posts metabox on Edit Posts or Add New "
295
  "Posts screens. Also applies to Pages and Custom Post Types."
296
  msgstr ""
297
 
298
+ #: includes/admin/default-settings.php:153
299
  msgid "Limit meta box to Admins only"
300
  msgstr ""
301
 
302
+ #: includes/admin/default-settings.php:154
303
  msgid ""
304
  "If selected, the meta box will be hidden from anyone who is not an Admin. By "
305
  "default, Contributors and above will be able to see the meta box. Applies "
306
  "only if the above option is selected."
307
  msgstr ""
308
 
309
+ #: includes/admin/default-settings.php:160
310
  msgid "Link to Contextual Related Posts plugin page"
311
  msgstr ""
312
 
313
+ #: includes/admin/default-settings.php:161
314
  msgid ""
315
  "A no-follow link to the plugin homepage will be added as the last item of "
316
  "the related posts."
317
  msgstr ""
318
 
319
+ #: includes/admin/default-settings.php:190
320
  msgid "Heading of posts"
321
  msgstr ""
322
 
323
+ #: includes/admin/default-settings.php:191
324
  msgid "Displayed before the list of the posts as a master heading"
325
  msgstr ""
326
 
327
+ #: includes/admin/default-settings.php:198
328
  msgid "Show when no posts are found"
329
  msgstr ""
330
 
331
+ #: includes/admin/default-settings.php:204
332
  msgid "Blank output"
333
  msgstr ""
334
 
335
+ #: includes/admin/default-settings.php:205
336
  msgid "Display custom text"
337
  msgstr ""
338
 
339
+ #: includes/admin/default-settings.php:210
340
  msgid "Custom text"
341
  msgstr ""
342
 
343
+ #: includes/admin/default-settings.php:211
344
  msgid ""
345
  "Enter the custom text that will be displayed if the second option is "
346
  "selected above."
347
  msgstr ""
348
 
349
+ #: includes/admin/default-settings.php:213 includes/deprecated.php:185
350
  msgid "No related posts found"
351
  msgstr ""
352
 
353
+ #: includes/admin/default-settings.php:217
354
+ #: includes/admin/default-settings.php:645
355
  msgid "Show post excerpt"
356
  msgstr ""
357
 
358
+ #: includes/admin/default-settings.php:218
359
  msgid ""
360
  "If the post does not have an excerpt, the plugin will automatically create "
361
  "one containing the number of words specified in the next option."
362
  msgstr ""
363
 
364
+ #: includes/admin/default-settings.php:224
365
  msgid "Length of excerpt (in words)"
366
  msgstr ""
367
 
368
+ #: includes/admin/default-settings.php:234
369
  msgid ""
370
  "Displays the date of the post. Uses the same date format set in General "
371
  "Options."
372
  msgstr ""
373
 
374
+ #: includes/admin/default-settings.php:247
375
  msgid "Limit post title length (in characters)"
376
  msgstr ""
377
 
378
+ #: includes/admin/default-settings.php:248
379
  msgid ""
380
  "Any title longer than the number of characters set above will be cut and "
381
  "appended with an ellipsis (&hellip;)"
382
  msgstr ""
383
 
384
+ #: includes/admin/default-settings.php:255
385
  msgid "Open links in new window"
386
  msgstr ""
387
 
388
+ #: includes/admin/default-settings.php:262
389
  msgid "Add nofollow to links"
390
  msgstr ""
391
 
392
+ #: includes/admin/default-settings.php:269
393
  msgid "Exclusion settings"
394
  msgstr ""
395
 
396
+ #: includes/admin/default-settings.php:275
397
  msgid "Exclude display on these posts"
398
  msgstr ""
399
 
400
+ #: includes/admin/default-settings.php:276
401
  msgid ""
402
  "Comma separated list of post, page or custom post type IDs. e.g. 188,320,500"
403
  msgstr ""
404
 
405
+ #: includes/admin/default-settings.php:282
406
  msgid "Exclude display on these post types"
407
  msgstr ""
408
 
409
+ #: includes/admin/default-settings.php:283
410
  msgid ""
411
  "The related posts will not display on any of the above selected post types."
412
  msgstr ""
413
 
414
+ #: includes/admin/default-settings.php:289
415
  msgid "HTML to display"
416
  msgstr ""
417
 
418
+ #: includes/admin/default-settings.php:295
419
  msgid "Before the list of posts"
420
  msgstr ""
421
 
422
+ #: includes/admin/default-settings.php:302
423
  msgid "After the list of posts"
424
  msgstr ""
425
 
426
+ #: includes/admin/default-settings.php:309
427
  msgid "Before each list item"
428
  msgstr ""
429
 
430
+ #: includes/admin/default-settings.php:316
431
  msgid "After each list item"
432
  msgstr ""
433
 
434
+ #: includes/admin/default-settings.php:346
435
+ #: includes/admin/default-settings.php:636
436
  msgid "Number of posts to display"
437
  msgstr ""
438
 
439
+ #: includes/admin/default-settings.php:347
440
  msgid ""
441
  "Maximum number of posts that will be displayed in the list. This option is "
442
  "used if you do not specify the number of posts in the widget or shortcodes"
443
  msgstr ""
444
 
445
+ #: includes/admin/default-settings.php:355
446
  msgid "Related posts should be newer than"
447
  msgstr ""
448
 
449
+ #: includes/admin/default-settings.php:356
450
  msgid ""
451
  "This sets the cut-off period for which posts will be displayed. e.g. setting "
452
  "it to 365 will show related posts from the last year only. Set to 0 to "
453
  "disable limiting posts by date."
454
  msgstr ""
455
 
456
+ #: includes/admin/default-settings.php:363
457
  #: includes/modules/class-crp-widget.php:132
458
  msgid "Order posts"
459
  msgstr ""
460
 
461
+ #: includes/admin/default-settings.php:372
462
  msgid ""
463
  "This shuffles the selected related posts. If you select to order by date in "
464
  "the previous option, then the related posts will first be sorted by date and "
466
  "enabled."
467
  msgstr ""
468
 
469
+ #: includes/admin/default-settings.php:378
470
  msgid "Related posts based on title and content"
471
  msgstr ""
472
 
473
+ #: includes/admin/default-settings.php:379
474
  msgid ""
475
  "If unchecked, only posts titles are used. Enable the cache if enabling this "
476
  "option for better performance. Each site is different, so toggle this option "
477
  "to see which setting gives you better quality related posts."
478
  msgstr ""
479
 
480
+ #: includes/admin/default-settings.php:385
481
  msgid "Limit content to be compared"
482
  msgstr ""
483
 
484
+ #: includes/admin/default-settings.php:387
485
  #, php-format
486
  msgid ""
487
  "This sets the maximum words of the content that will be matched. Set to 0 "
488
  "for no limit. Max value: %1$s. Only applies if you activate the above option."
489
  msgstr ""
490
 
491
+ #: includes/admin/default-settings.php:395
492
  #: includes/modules/class-crp-widget.php:156
493
  msgid "Post types to include"
494
  msgstr ""
495
 
496
+ #: includes/admin/default-settings.php:396
497
  msgid ""
498
  "At least one option should be selected above. Select which post types you "
499
  "want to include in the list of posts. This field can be overridden using a "
500
  "comma separated list of post types when using the manual display."
501
  msgstr ""
502
 
503
+ #: includes/admin/default-settings.php:402
504
  msgid "Limit to same post type"
505
  msgstr ""
506
 
507
+ #: includes/admin/default-settings.php:403
508
  msgid ""
509
  "If checked, the related posts will only be selected from the same post type "
510
  "of the current post."
511
  msgstr ""
512
 
513
+ #: includes/admin/default-settings.php:409
514
  msgid "Limit to same author"
515
  msgstr ""
516
 
517
+ #: includes/admin/default-settings.php:410
518
  msgid ""
519
  "If checked, the related posts will only be selected from the same author of "
520
  "the current post."
521
  msgstr ""
522
 
523
+ #: includes/admin/default-settings.php:416
524
  msgid "Post/page IDs to exclude"
525
  msgstr ""
526
 
527
+ #: includes/admin/default-settings.php:417
528
  msgid ""
529
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
530
  "188,320,500"
531
  msgstr ""
532
 
533
+ #: includes/admin/default-settings.php:423
534
  msgid "Exclude Categories"
535
  msgstr ""
536
 
537
+ #: includes/admin/default-settings.php:424
538
  msgid ""
539
  "Comma separated list of category slugs. The field above has an autocomplete "
540
  "so simply start typing in the starting letters and it will prompt you with "
541
  "options. Does not support custom taxonomies."
542
  msgstr ""
543
 
544
+ #: includes/admin/default-settings.php:435
545
  msgid "Exclude category IDs"
546
  msgstr ""
547
 
548
+ #: includes/admin/default-settings.php:436
549
  msgid ""
550
  "This is a readonly field that is automatically populated based on the above "
551
  "input when the settings are saved. These might differ from the IDs visible "
553
  "the term_taxonomy_id which is unique to this taxonomy."
554
  msgstr ""
555
 
556
+ #: includes/admin/default-settings.php:466
557
+ #: includes/admin/default-settings.php:652
558
  msgid "Location of the post thumbnail"
559
  msgstr ""
560
 
561
+ #: includes/admin/default-settings.php:471
562
+ #: includes/admin/default-settings.php:657
563
  msgid "Display thumbnails inline with posts, before title"
564
  msgstr ""
565
 
566
+ #: includes/admin/default-settings.php:472
567
+ #: includes/admin/default-settings.php:658
568
  msgid "Display thumbnails inline with posts, after title"
569
  msgstr ""
570
 
571
+ #: includes/admin/default-settings.php:473
572
+ #: includes/admin/default-settings.php:659
573
  msgid "Display only thumbnails, no text"
574
  msgstr ""
575
 
576
+ #: includes/admin/default-settings.php:474
577
+ #: includes/admin/default-settings.php:660
578
  msgid "Do not display thumbnails, only text"
579
  msgstr ""
580
 
581
+ #: includes/admin/default-settings.php:479
582
  msgid "Thumbnail size"
583
  msgstr ""
584
 
585
+ #: includes/admin/default-settings.php:480
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:482
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:492
599
+ #: includes/admin/default-settings.php:665
600
  #: includes/modules/class-crp-widget.php:129
601
  msgid "Thumbnail width"
602
  msgstr ""
603
 
604
+ #: includes/admin/default-settings.php:501
605
+ #: includes/admin/default-settings.php:674
606
  #: includes/modules/class-crp-widget.php:124
607
  msgid "Thumbnail height"
608
  msgstr ""
609
 
610
+ #: includes/admin/default-settings.php:510
611
  msgid "Hard crop thumbnails"
612
  msgstr ""
613
 
614
+ #: includes/admin/default-settings.php:511
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:517
621
  msgid "Generate thumbnail sizes"
622
  msgstr ""
623
 
624
+ #: includes/admin/default-settings.php:518
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:524
632
  msgid "Thumbnail size attributes"
633
  msgstr ""
634
 
635
+ #: includes/admin/default-settings.php:530
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:532
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:533
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:538
652
  msgid "Thumbnail meta field name"
653
  msgstr ""
654
 
655
+ #: includes/admin/default-settings.php:539
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:545
662
  msgid "Get first image"
663
  msgstr ""
664
 
665
+ #: includes/admin/default-settings.php:546
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:552
673
  msgid "Use default thumbnail?"
674
  msgstr ""
675
 
676
+ #: includes/admin/default-settings.php:553
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:559 includes/admin/settings-page.php:748
683
  msgid "Default thumbnail"
684
  msgstr ""
685
 
686
+ #: includes/admin/default-settings.php:560
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:590
693
  msgid "Related Posts style"
694
  msgstr ""
695
 
696
+ #: includes/admin/default-settings.php:598
697
  msgid "Custom CSS"
698
  msgstr ""
699
 
700
+ #: includes/admin/default-settings.php:600
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:630
708
  msgid "About this tab"
709
  msgstr ""
710
 
711
+ #: includes/admin/default-settings.php:631
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:751
720
  msgid "No styles"
721
  msgstr ""
722
 
723
+ #: includes/admin/default-settings.php:752
724
  msgid "Select this option if you plan to add your own styles"
725
  msgstr ""
726
 
727
+ #: includes/admin/default-settings.php:756
728
  msgid "Text only"
729
  msgstr ""
730
 
731
+ #: includes/admin/default-settings.php:757
732
  msgid "Disable thumbnails and no longer include the default style sheet"
733
  msgstr ""
734
 
735
+ #: includes/admin/default-settings.php:761
736
  msgid "Rounded thumbnails"
737
  msgstr ""
738
 
739
+ #: includes/admin/default-settings.php:762
740
  msgid ""
741
  "Enabling this option will turn on the thumbnails and force their width and "
742
  "height. It will also turn off the display of the author, excerpt and date if "
743
  "already enabled. Disabling this option will not revert any settings."
744
  msgstr ""
745
 
746
+ #: includes/admin/default-settings.php:785
747
  msgid "By relevance"
748
  msgstr ""
749
 
750
+ #: includes/admin/default-settings.php:786
751
  msgid "Randomly"
752
  msgstr ""
753
 
754
+ #: includes/admin/default-settings.php:787
755
  msgid "By date"
756
  msgstr ""
757
 
1203
  msgid "Follow me"
1204
  msgstr ""
1205
 
1206
+ #: includes/main-query.php:245
 
 
 
 
1207
  #, php-format
1208
  msgid ""
1209
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
languages/contextual-related-posts-en_US.pot CHANGED
@@ -3,10 +3,10 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Contextual Related Posts\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2020-05-07 22:01+0100\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza\n"
9
- "Language-Team: plugins@webberzone.com\n"
10
  "Language: en\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -22,7 +22,8 @@ msgstr ""
22
  msgid "Contextual Related Posts"
23
  msgstr ""
24
 
25
- #: includes/admin/admin.php:32 includes/admin/default-settings.php:186
 
26
  msgid "Related Posts"
27
  msgstr ""
28
 
@@ -92,13 +93,13 @@ msgstr ""
92
 
93
  #: includes/admin/blocks/related-posts/index.js:173
94
  #: includes/admin/blocks/related-posts/index.min.js:1
95
- #: includes/admin/default-settings.php:233
96
  msgid "Show author"
97
  msgstr ""
98
 
99
  #: includes/admin/blocks/related-posts/index.js:178
100
  #: includes/admin/blocks/related-posts/index.min.js:1
101
- #: includes/admin/default-settings.php:226
102
  msgid "Show date"
103
  msgstr ""
104
 
@@ -135,7 +136,7 @@ msgstr ""
135
 
136
  #: includes/admin/blocks/related-posts/index.js:200
137
  #: includes/admin/blocks/related-posts/index.min.js:1
138
- #: includes/admin/default-settings.php:364
139
  msgid "Randomize posts"
140
  msgstr ""
141
 
@@ -275,179 +276,189 @@ msgid ""
275
  msgstr ""
276
 
277
  #: includes/admin/default-settings.php:139
278
- msgid "Show metabox"
279
  msgstr ""
280
 
281
  #: includes/admin/default-settings.php:140
282
  msgid ""
 
 
 
 
 
 
 
 
 
 
283
  "This will add the Contextual Related Posts metabox on Edit Posts or Add New "
284
  "Posts screens. Also applies to Pages and Custom Post Types."
285
  msgstr ""
286
 
287
- #: includes/admin/default-settings.php:146
288
  msgid "Limit meta box to Admins only"
289
  msgstr ""
290
 
291
- #: includes/admin/default-settings.php:147
292
  msgid ""
293
  "If selected, the meta box will be hidden from anyone who is not an Admin. By "
294
  "default, Contributors and above will be able to see the meta box. Applies "
295
  "only if the above option is selected."
296
  msgstr ""
297
 
298
- #: includes/admin/default-settings.php:153
299
  msgid "Link to Contextual Related Posts plugin page"
300
  msgstr ""
301
 
302
- #: includes/admin/default-settings.php:154
303
  msgid ""
304
  "A no-follow link to the plugin homepage will be added as the last item of "
305
  "the related posts."
306
  msgstr ""
307
 
308
- #: includes/admin/default-settings.php:183
309
  msgid "Heading of posts"
310
  msgstr ""
311
 
312
- #: includes/admin/default-settings.php:184
313
  msgid "Displayed before the list of the posts as a master heading"
314
  msgstr ""
315
 
316
- #: includes/admin/default-settings.php:191
317
  msgid "Show when no posts are found"
318
  msgstr ""
319
 
320
- #: includes/admin/default-settings.php:197
321
  msgid "Blank output"
322
  msgstr ""
323
 
324
- #: includes/admin/default-settings.php:198
325
  msgid "Display custom text"
326
  msgstr ""
327
 
328
- #: includes/admin/default-settings.php:203
329
  msgid "Custom text"
330
  msgstr ""
331
 
332
- #: includes/admin/default-settings.php:204
333
  msgid ""
334
  "Enter the custom text that will be displayed if the second option is "
335
  "selected above."
336
  msgstr ""
337
 
338
- #: includes/admin/default-settings.php:206 includes/deprecated.php:185
339
  msgid "No related posts found"
340
  msgstr ""
341
 
342
- #: includes/admin/default-settings.php:210
343
- #: includes/admin/default-settings.php:638
344
  msgid "Show post excerpt"
345
  msgstr ""
346
 
347
- #: includes/admin/default-settings.php:211
348
  msgid ""
349
  "If the post does not have an excerpt, the plugin will automatically create "
350
  "one containing the number of words specified in the next option."
351
  msgstr ""
352
 
353
- #: includes/admin/default-settings.php:217
354
  msgid "Length of excerpt (in words)"
355
  msgstr ""
356
 
357
- #: includes/admin/default-settings.php:227
358
  msgid ""
359
  "Displays the date of the post. Uses the same date format set in General "
360
  "Options."
361
  msgstr ""
362
 
363
- #: includes/admin/default-settings.php:240
364
  msgid "Limit post title length (in characters)"
365
  msgstr ""
366
 
367
- #: includes/admin/default-settings.php:241
368
  msgid ""
369
  "Any title longer than the number of characters set above will be cut and "
370
  "appended with an ellipsis (&hellip;)"
371
  msgstr ""
372
 
373
- #: includes/admin/default-settings.php:248
374
  msgid "Open links in new window"
375
  msgstr ""
376
 
377
- #: includes/admin/default-settings.php:255
378
  msgid "Add nofollow to links"
379
  msgstr ""
380
 
381
- #: includes/admin/default-settings.php:262
382
  msgid "Exclusion settings"
383
  msgstr ""
384
 
385
- #: includes/admin/default-settings.php:268
386
  msgid "Exclude display on these posts"
387
  msgstr ""
388
 
389
- #: includes/admin/default-settings.php:269
390
  msgid ""
391
  "Comma separated list of post, page or custom post type IDs. e.g. 188,320,500"
392
  msgstr ""
393
 
394
- #: includes/admin/default-settings.php:275
395
  msgid "Exclude display on these post types"
396
  msgstr ""
397
 
398
- #: includes/admin/default-settings.php:276
399
  msgid ""
400
  "The related posts will not display on any of the above selected post types."
401
  msgstr ""
402
 
403
- #: includes/admin/default-settings.php:282
404
  msgid "HTML to display"
405
  msgstr ""
406
 
407
- #: includes/admin/default-settings.php:288
408
  msgid "Before the list of posts"
409
  msgstr ""
410
 
411
- #: includes/admin/default-settings.php:295
412
  msgid "After the list of posts"
413
  msgstr ""
414
 
415
- #: includes/admin/default-settings.php:302
416
  msgid "Before each list item"
417
  msgstr ""
418
 
419
- #: includes/admin/default-settings.php:309
420
  msgid "After each list item"
421
  msgstr ""
422
 
423
- #: includes/admin/default-settings.php:339
424
- #: includes/admin/default-settings.php:629
425
  msgid "Number of posts to display"
426
  msgstr ""
427
 
428
- #: includes/admin/default-settings.php:340
429
  msgid ""
430
  "Maximum number of posts that will be displayed in the list. This option is "
431
  "used if you do not specify the number of posts in the widget or shortcodes"
432
  msgstr ""
433
 
434
- #: includes/admin/default-settings.php:348
435
  msgid "Related posts should be newer than"
436
  msgstr ""
437
 
438
- #: includes/admin/default-settings.php:349
439
  msgid ""
440
  "This sets the cut-off period for which posts will be displayed. e.g. setting "
441
  "it to 365 will show related posts from the last year only. Set to 0 to "
442
  "disable limiting posts by date."
443
  msgstr ""
444
 
445
- #: includes/admin/default-settings.php:356
446
  #: includes/modules/class-crp-widget.php:132
447
  msgid "Order posts"
448
  msgstr ""
449
 
450
- #: includes/admin/default-settings.php:365
451
  msgid ""
452
  "This shuffles the selected related posts. If you select to order by date in "
453
  "the previous option, then the related posts will first be sorted by date and "
@@ -455,86 +466,86 @@ msgid ""
455
  "enabled."
456
  msgstr ""
457
 
458
- #: includes/admin/default-settings.php:371
459
  msgid "Related posts based on title and content"
460
  msgstr ""
461
 
462
- #: includes/admin/default-settings.php:372
463
  msgid ""
464
  "If unchecked, only posts titles are used. Enable the cache if enabling this "
465
  "option for better performance. Each site is different, so toggle this option "
466
  "to see which setting gives you better quality related posts."
467
  msgstr ""
468
 
469
- #: includes/admin/default-settings.php:378
470
  msgid "Limit content to be compared"
471
  msgstr ""
472
 
473
- #: includes/admin/default-settings.php:380
474
  #, php-format
475
  msgid ""
476
  "This sets the maximum words of the content that will be matched. Set to 0 "
477
  "for no limit. Max value: %1$s. Only applies if you activate the above option."
478
  msgstr ""
479
 
480
- #: includes/admin/default-settings.php:388
481
  #: includes/modules/class-crp-widget.php:156
482
  msgid "Post types to include"
483
  msgstr ""
484
 
485
- #: includes/admin/default-settings.php:389
486
  msgid ""
487
  "At least one option should be selected above. Select which post types you "
488
  "want to include in the list of posts. This field can be overridden using a "
489
  "comma separated list of post types when using the manual display."
490
  msgstr ""
491
 
492
- #: includes/admin/default-settings.php:395
493
  msgid "Limit to same post type"
494
  msgstr ""
495
 
496
- #: includes/admin/default-settings.php:396
497
  msgid ""
498
  "If checked, the related posts will only be selected from the same post type "
499
  "of the current post."
500
  msgstr ""
501
 
502
- #: includes/admin/default-settings.php:402
503
  msgid "Limit to same author"
504
  msgstr ""
505
 
506
- #: includes/admin/default-settings.php:403
507
  msgid ""
508
  "If checked, the related posts will only be selected from the same author of "
509
  "the current post."
510
  msgstr ""
511
 
512
- #: includes/admin/default-settings.php:409
513
  msgid "Post/page IDs to exclude"
514
  msgstr ""
515
 
516
- #: includes/admin/default-settings.php:410
517
  msgid ""
518
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
519
  "188,320,500"
520
  msgstr ""
521
 
522
- #: includes/admin/default-settings.php:416
523
  msgid "Exclude Categories"
524
  msgstr ""
525
 
526
- #: includes/admin/default-settings.php:417
527
  msgid ""
528
  "Comma separated list of category slugs. The field above has an autocomplete "
529
  "so simply start typing in the starting letters and it will prompt you with "
530
  "options. Does not support custom taxonomies."
531
  msgstr ""
532
 
533
- #: includes/admin/default-settings.php:428
534
  msgid "Exclude category IDs"
535
  msgstr ""
536
 
537
- #: includes/admin/default-settings.php:429
538
  msgid ""
539
  "This is a readonly field that is automatically populated based on the above "
540
  "input when the settings are saved. These might differ from the IDs visible "
@@ -542,36 +553,36 @@ msgid ""
542
  "the term_taxonomy_id which is unique to this taxonomy."
543
  msgstr ""
544
 
545
- #: includes/admin/default-settings.php:459
546
- #: includes/admin/default-settings.php:645
547
  msgid "Location of the post thumbnail"
548
  msgstr ""
549
 
550
- #: includes/admin/default-settings.php:464
551
- #: includes/admin/default-settings.php:650
552
  msgid "Display thumbnails inline with posts, before title"
553
  msgstr ""
554
 
555
- #: includes/admin/default-settings.php:465
556
- #: includes/admin/default-settings.php:651
557
  msgid "Display thumbnails inline with posts, after title"
558
  msgstr ""
559
 
560
- #: includes/admin/default-settings.php:466
561
- #: includes/admin/default-settings.php:652
562
  msgid "Display only thumbnails, no text"
563
  msgstr ""
564
 
565
- #: includes/admin/default-settings.php:467
566
- #: includes/admin/default-settings.php:653
567
  msgid "Do not display thumbnails, only text"
568
  msgstr ""
569
 
570
- #: includes/admin/default-settings.php:472
571
  msgid "Thumbnail size"
572
  msgstr ""
573
 
574
- #: includes/admin/default-settings.php:473
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:475
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:485
588
- #: includes/admin/default-settings.php:658
589
  #: includes/modules/class-crp-widget.php:129
590
  msgid "Thumbnail width"
591
  msgstr ""
592
 
593
- #: includes/admin/default-settings.php:494
594
- #: includes/admin/default-settings.php:667
595
  #: includes/modules/class-crp-widget.php:124
596
  msgid "Thumbnail height"
597
  msgstr ""
598
 
599
- #: includes/admin/default-settings.php:503
600
  msgid "Hard crop thumbnails"
601
  msgstr ""
602
 
603
- #: includes/admin/default-settings.php:504
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:510
610
  msgid "Generate thumbnail sizes"
611
  msgstr ""
612
 
613
- #: includes/admin/default-settings.php:511
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:517
621
  msgid "Thumbnail size attributes"
622
  msgstr ""
623
 
624
- #: includes/admin/default-settings.php:523
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:525
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:526
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:531
641
  msgid "Thumbnail meta field name"
642
  msgstr ""
643
 
644
- #: includes/admin/default-settings.php:532
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:538
651
  msgid "Get first image"
652
  msgstr ""
653
 
654
- #: includes/admin/default-settings.php:539
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:545
662
  msgid "Use default thumbnail?"
663
  msgstr ""
664
 
665
- #: includes/admin/default-settings.php:546
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:552 includes/admin/settings-page.php:748
672
  msgid "Default thumbnail"
673
  msgstr ""
674
 
675
- #: includes/admin/default-settings.php:553
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:583
682
  msgid "Related Posts style"
683
  msgstr ""
684
 
685
- #: includes/admin/default-settings.php:591
686
  msgid "Custom CSS"
687
  msgstr ""
688
 
689
- #: includes/admin/default-settings.php:593
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:623
697
  msgid "About this tab"
698
  msgstr ""
699
 
700
- #: includes/admin/default-settings.php:624
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,42 +716,42 @@ msgid ""
705
  "way to style the related posts in the feed."
706
  msgstr ""
707
 
708
- #: includes/admin/default-settings.php:744
709
  msgid "No styles"
710
  msgstr ""
711
 
712
- #: includes/admin/default-settings.php:745
713
  msgid "Select this option if you plan to add your own styles"
714
  msgstr ""
715
 
716
- #: includes/admin/default-settings.php:749
717
  msgid "Text only"
718
  msgstr ""
719
 
720
- #: includes/admin/default-settings.php:750
721
  msgid "Disable thumbnails and no longer include the default style sheet"
722
  msgstr ""
723
 
724
- #: includes/admin/default-settings.php:754
725
  msgid "Rounded thumbnails"
726
  msgstr ""
727
 
728
- #: includes/admin/default-settings.php:755
729
  msgid ""
730
  "Enabling this option will turn on the thumbnails and force their width and "
731
  "height. It will also turn off the display of the author, excerpt and date if "
732
  "already enabled. Disabling this option will not revert any settings."
733
  msgstr ""
734
 
735
- #: includes/admin/default-settings.php:778
736
  msgid "By relevance"
737
  msgstr ""
738
 
739
- #: includes/admin/default-settings.php:779
740
  msgid "Randomly"
741
  msgstr ""
742
 
743
- #: includes/admin/default-settings.php:780
744
  msgid "By date"
745
  msgstr ""
746
 
@@ -1192,11 +1203,7 @@ msgstr ""
1192
  msgid "Follow me"
1193
  msgstr ""
1194
 
1195
- #: includes/deprecated.php:183
1196
- msgid "<h3>Related Posts:</h3>"
1197
- msgstr ""
1198
-
1199
- #: includes/main-query.php:239
1200
  #, php-format
1201
  msgid ""
1202
  "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: 2020-06-14 22:38+0100\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Ajay D'Souza\n"
9
+ "Language-Team: WebberZone\n"
10
  "Language: en\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
22
  msgid "Contextual Related Posts"
23
  msgstr ""
24
 
25
+ #: includes/admin/admin.php:32 includes/admin/default-settings.php:193
26
+ #: includes/deprecated.php:183
27
  msgid "Related Posts"
28
  msgstr ""
29
 
93
 
94
  #: includes/admin/blocks/related-posts/index.js:173
95
  #: includes/admin/blocks/related-posts/index.min.js:1
96
+ #: includes/admin/default-settings.php:240
97
  msgid "Show author"
98
  msgstr ""
99
 
100
  #: includes/admin/blocks/related-posts/index.js:178
101
  #: includes/admin/blocks/related-posts/index.min.js:1
102
+ #: includes/admin/default-settings.php:233
103
  msgid "Show date"
104
  msgstr ""
105
 
136
 
137
  #: includes/admin/blocks/related-posts/index.js:200
138
  #: includes/admin/blocks/related-posts/index.min.js:1
139
+ #: includes/admin/default-settings.php:371
140
  msgid "Randomize posts"
141
  msgstr ""
142
 
276
  msgstr ""
277
 
278
  #: includes/admin/default-settings.php:139
279
+ msgid "Delete FULLTEXT indices on deactivate"
280
  msgstr ""
281
 
282
  #: includes/admin/default-settings.php:140
283
  msgid ""
284
+ "If this is checked, FULLTEXT indices generated by Contextual Related Posts "
285
+ "are removed from the database if you choose to deactivate the plugin."
286
+ msgstr ""
287
+
288
+ #: includes/admin/default-settings.php:146
289
+ msgid "Show metabox"
290
+ msgstr ""
291
+
292
+ #: includes/admin/default-settings.php:147
293
+ msgid ""
294
  "This will add the Contextual Related Posts metabox on Edit Posts or Add New "
295
  "Posts screens. Also applies to Pages and Custom Post Types."
296
  msgstr ""
297
 
298
+ #: includes/admin/default-settings.php:153
299
  msgid "Limit meta box to Admins only"
300
  msgstr ""
301
 
302
+ #: includes/admin/default-settings.php:154
303
  msgid ""
304
  "If selected, the meta box will be hidden from anyone who is not an Admin. By "
305
  "default, Contributors and above will be able to see the meta box. Applies "
306
  "only if the above option is selected."
307
  msgstr ""
308
 
309
+ #: includes/admin/default-settings.php:160
310
  msgid "Link to Contextual Related Posts plugin page"
311
  msgstr ""
312
 
313
+ #: includes/admin/default-settings.php:161
314
  msgid ""
315
  "A no-follow link to the plugin homepage will be added as the last item of "
316
  "the related posts."
317
  msgstr ""
318
 
319
+ #: includes/admin/default-settings.php:190
320
  msgid "Heading of posts"
321
  msgstr ""
322
 
323
+ #: includes/admin/default-settings.php:191
324
  msgid "Displayed before the list of the posts as a master heading"
325
  msgstr ""
326
 
327
+ #: includes/admin/default-settings.php:198
328
  msgid "Show when no posts are found"
329
  msgstr ""
330
 
331
+ #: includes/admin/default-settings.php:204
332
  msgid "Blank output"
333
  msgstr ""
334
 
335
+ #: includes/admin/default-settings.php:205
336
  msgid "Display custom text"
337
  msgstr ""
338
 
339
+ #: includes/admin/default-settings.php:210
340
  msgid "Custom text"
341
  msgstr ""
342
 
343
+ #: includes/admin/default-settings.php:211
344
  msgid ""
345
  "Enter the custom text that will be displayed if the second option is "
346
  "selected above."
347
  msgstr ""
348
 
349
+ #: includes/admin/default-settings.php:213 includes/deprecated.php:185
350
  msgid "No related posts found"
351
  msgstr ""
352
 
353
+ #: includes/admin/default-settings.php:217
354
+ #: includes/admin/default-settings.php:645
355
  msgid "Show post excerpt"
356
  msgstr ""
357
 
358
+ #: includes/admin/default-settings.php:218
359
  msgid ""
360
  "If the post does not have an excerpt, the plugin will automatically create "
361
  "one containing the number of words specified in the next option."
362
  msgstr ""
363
 
364
+ #: includes/admin/default-settings.php:224
365
  msgid "Length of excerpt (in words)"
366
  msgstr ""
367
 
368
+ #: includes/admin/default-settings.php:234
369
  msgid ""
370
  "Displays the date of the post. Uses the same date format set in General "
371
  "Options."
372
  msgstr ""
373
 
374
+ #: includes/admin/default-settings.php:247
375
  msgid "Limit post title length (in characters)"
376
  msgstr ""
377
 
378
+ #: includes/admin/default-settings.php:248
379
  msgid ""
380
  "Any title longer than the number of characters set above will be cut and "
381
  "appended with an ellipsis (&hellip;)"
382
  msgstr ""
383
 
384
+ #: includes/admin/default-settings.php:255
385
  msgid "Open links in new window"
386
  msgstr ""
387
 
388
+ #: includes/admin/default-settings.php:262
389
  msgid "Add nofollow to links"
390
  msgstr ""
391
 
392
+ #: includes/admin/default-settings.php:269
393
  msgid "Exclusion settings"
394
  msgstr ""
395
 
396
+ #: includes/admin/default-settings.php:275
397
  msgid "Exclude display on these posts"
398
  msgstr ""
399
 
400
+ #: includes/admin/default-settings.php:276
401
  msgid ""
402
  "Comma separated list of post, page or custom post type IDs. e.g. 188,320,500"
403
  msgstr ""
404
 
405
+ #: includes/admin/default-settings.php:282
406
  msgid "Exclude display on these post types"
407
  msgstr ""
408
 
409
+ #: includes/admin/default-settings.php:283
410
  msgid ""
411
  "The related posts will not display on any of the above selected post types."
412
  msgstr ""
413
 
414
+ #: includes/admin/default-settings.php:289
415
  msgid "HTML to display"
416
  msgstr ""
417
 
418
+ #: includes/admin/default-settings.php:295
419
  msgid "Before the list of posts"
420
  msgstr ""
421
 
422
+ #: includes/admin/default-settings.php:302
423
  msgid "After the list of posts"
424
  msgstr ""
425
 
426
+ #: includes/admin/default-settings.php:309
427
  msgid "Before each list item"
428
  msgstr ""
429
 
430
+ #: includes/admin/default-settings.php:316
431
  msgid "After each list item"
432
  msgstr ""
433
 
434
+ #: includes/admin/default-settings.php:346
435
+ #: includes/admin/default-settings.php:636
436
  msgid "Number of posts to display"
437
  msgstr ""
438
 
439
+ #: includes/admin/default-settings.php:347
440
  msgid ""
441
  "Maximum number of posts that will be displayed in the list. This option is "
442
  "used if you do not specify the number of posts in the widget or shortcodes"
443
  msgstr ""
444
 
445
+ #: includes/admin/default-settings.php:355
446
  msgid "Related posts should be newer than"
447
  msgstr ""
448
 
449
+ #: includes/admin/default-settings.php:356
450
  msgid ""
451
  "This sets the cut-off period for which posts will be displayed. e.g. setting "
452
  "it to 365 will show related posts from the last year only. Set to 0 to "
453
  "disable limiting posts by date."
454
  msgstr ""
455
 
456
+ #: includes/admin/default-settings.php:363
457
  #: includes/modules/class-crp-widget.php:132
458
  msgid "Order posts"
459
  msgstr ""
460
 
461
+ #: includes/admin/default-settings.php:372
462
  msgid ""
463
  "This shuffles the selected related posts. If you select to order by date in "
464
  "the previous option, then the related posts will first be sorted by date and "
466
  "enabled."
467
  msgstr ""
468
 
469
+ #: includes/admin/default-settings.php:378
470
  msgid "Related posts based on title and content"
471
  msgstr ""
472
 
473
+ #: includes/admin/default-settings.php:379
474
  msgid ""
475
  "If unchecked, only posts titles are used. Enable the cache if enabling this "
476
  "option for better performance. Each site is different, so toggle this option "
477
  "to see which setting gives you better quality related posts."
478
  msgstr ""
479
 
480
+ #: includes/admin/default-settings.php:385
481
  msgid "Limit content to be compared"
482
  msgstr ""
483
 
484
+ #: includes/admin/default-settings.php:387
485
  #, php-format
486
  msgid ""
487
  "This sets the maximum words of the content that will be matched. Set to 0 "
488
  "for no limit. Max value: %1$s. Only applies if you activate the above option."
489
  msgstr ""
490
 
491
+ #: includes/admin/default-settings.php:395
492
  #: includes/modules/class-crp-widget.php:156
493
  msgid "Post types to include"
494
  msgstr ""
495
 
496
+ #: includes/admin/default-settings.php:396
497
  msgid ""
498
  "At least one option should be selected above. Select which post types you "
499
  "want to include in the list of posts. This field can be overridden using a "
500
  "comma separated list of post types when using the manual display."
501
  msgstr ""
502
 
503
+ #: includes/admin/default-settings.php:402
504
  msgid "Limit to same post type"
505
  msgstr ""
506
 
507
+ #: includes/admin/default-settings.php:403
508
  msgid ""
509
  "If checked, the related posts will only be selected from the same post type "
510
  "of the current post."
511
  msgstr ""
512
 
513
+ #: includes/admin/default-settings.php:409
514
  msgid "Limit to same author"
515
  msgstr ""
516
 
517
+ #: includes/admin/default-settings.php:410
518
  msgid ""
519
  "If checked, the related posts will only be selected from the same author of "
520
  "the current post."
521
  msgstr ""
522
 
523
+ #: includes/admin/default-settings.php:416
524
  msgid "Post/page IDs to exclude"
525
  msgstr ""
526
 
527
+ #: includes/admin/default-settings.php:417
528
  msgid ""
529
  "Comma-separated list of post or page IDs to exclude from the list. e.g. "
530
  "188,320,500"
531
  msgstr ""
532
 
533
+ #: includes/admin/default-settings.php:423
534
  msgid "Exclude Categories"
535
  msgstr ""
536
 
537
+ #: includes/admin/default-settings.php:424
538
  msgid ""
539
  "Comma separated list of category slugs. The field above has an autocomplete "
540
  "so simply start typing in the starting letters and it will prompt you with "
541
  "options. Does not support custom taxonomies."
542
  msgstr ""
543
 
544
+ #: includes/admin/default-settings.php:435
545
  msgid "Exclude category IDs"
546
  msgstr ""
547
 
548
+ #: includes/admin/default-settings.php:436
549
  msgid ""
550
  "This is a readonly field that is automatically populated based on the above "
551
  "input when the settings are saved. These might differ from the IDs visible "
553
  "the term_taxonomy_id which is unique to this taxonomy."
554
  msgstr ""
555
 
556
+ #: includes/admin/default-settings.php:466
557
+ #: includes/admin/default-settings.php:652
558
  msgid "Location of the post thumbnail"
559
  msgstr ""
560
 
561
+ #: includes/admin/default-settings.php:471
562
+ #: includes/admin/default-settings.php:657
563
  msgid "Display thumbnails inline with posts, before title"
564
  msgstr ""
565
 
566
+ #: includes/admin/default-settings.php:472
567
+ #: includes/admin/default-settings.php:658
568
  msgid "Display thumbnails inline with posts, after title"
569
  msgstr ""
570
 
571
+ #: includes/admin/default-settings.php:473
572
+ #: includes/admin/default-settings.php:659
573
  msgid "Display only thumbnails, no text"
574
  msgstr ""
575
 
576
+ #: includes/admin/default-settings.php:474
577
+ #: includes/admin/default-settings.php:660
578
  msgid "Do not display thumbnails, only text"
579
  msgstr ""
580
 
581
+ #: includes/admin/default-settings.php:479
582
  msgid "Thumbnail size"
583
  msgstr ""
584
 
585
+ #: includes/admin/default-settings.php:480
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:482
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:492
599
+ #: includes/admin/default-settings.php:665
600
  #: includes/modules/class-crp-widget.php:129
601
  msgid "Thumbnail width"
602
  msgstr ""
603
 
604
+ #: includes/admin/default-settings.php:501
605
+ #: includes/admin/default-settings.php:674
606
  #: includes/modules/class-crp-widget.php:124
607
  msgid "Thumbnail height"
608
  msgstr ""
609
 
610
+ #: includes/admin/default-settings.php:510
611
  msgid "Hard crop thumbnails"
612
  msgstr ""
613
 
614
+ #: includes/admin/default-settings.php:511
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:517
621
  msgid "Generate thumbnail sizes"
622
  msgstr ""
623
 
624
+ #: includes/admin/default-settings.php:518
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:524
632
  msgid "Thumbnail size attributes"
633
  msgstr ""
634
 
635
+ #: includes/admin/default-settings.php:530
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:532
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:533
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:538
652
  msgid "Thumbnail meta field name"
653
  msgstr ""
654
 
655
+ #: includes/admin/default-settings.php:539
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:545
662
  msgid "Get first image"
663
  msgstr ""
664
 
665
+ #: includes/admin/default-settings.php:546
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:552
673
  msgid "Use default thumbnail?"
674
  msgstr ""
675
 
676
+ #: includes/admin/default-settings.php:553
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:559 includes/admin/settings-page.php:748
683
  msgid "Default thumbnail"
684
  msgstr ""
685
 
686
+ #: includes/admin/default-settings.php:560
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:590
693
  msgid "Related Posts style"
694
  msgstr ""
695
 
696
+ #: includes/admin/default-settings.php:598
697
  msgid "Custom CSS"
698
  msgstr ""
699
 
700
+ #: includes/admin/default-settings.php:600
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:630
708
  msgid "About this tab"
709
  msgstr ""
710
 
711
+ #: includes/admin/default-settings.php:631
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:751
720
  msgid "No styles"
721
  msgstr ""
722
 
723
+ #: includes/admin/default-settings.php:752
724
  msgid "Select this option if you plan to add your own styles"
725
  msgstr ""
726
 
727
+ #: includes/admin/default-settings.php:756
728
  msgid "Text only"
729
  msgstr ""
730
 
731
+ #: includes/admin/default-settings.php:757
732
  msgid "Disable thumbnails and no longer include the default style sheet"
733
  msgstr ""
734
 
735
+ #: includes/admin/default-settings.php:761
736
  msgid "Rounded thumbnails"
737
  msgstr ""
738
 
739
+ #: includes/admin/default-settings.php:762
740
  msgid ""
741
  "Enabling this option will turn on the thumbnails and force their width and "
742
  "height. It will also turn off the display of the author, excerpt and date if "
743
  "already enabled. Disabling this option will not revert any settings."
744
  msgstr ""
745
 
746
+ #: includes/admin/default-settings.php:785
747
  msgid "By relevance"
748
  msgstr ""
749
 
750
+ #: includes/admin/default-settings.php:786
751
  msgid "Randomly"
752
  msgstr ""
753
 
754
+ #: includes/admin/default-settings.php:787
755
  msgid "By date"
756
  msgstr ""
757
 
1203
  msgid "Follow me"
1204
  msgstr ""
1205
 
1206
+ #: includes/main-query.php:245
 
 
 
 
1207
  #, php-format
1208
  msgid ""
1209
  "Powered by <a href=\"%s\" rel=\"nofollow\" style=\"float:none\">Contextual "
phpcs.ruleset.xml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Coding Standards for Plugins">
3
+ <description>Generally-applicable sniffs for WordPress plugins</description>
4
+
5
+ <exclude-pattern>*/node_modules/*</exclude-pattern>
6
+ <exclude-pattern>*/vendor/*</exclude-pattern>
7
+ <exclude-pattern>*/tests/*</exclude-pattern>
8
+ <exclude-pattern>*/index.php</exclude-pattern>
9
+
10
+ <rule ref="WordPress" />
11
+
12
+ <!-- Add in some extra rules from other standards. -->
13
+ <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
14
+ <rule ref="Generic.Commenting.Todo"/>
15
+ <rule ref="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
16
+
17
+ </ruleset>
readme.txt CHANGED
@@ -2,9 +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: 2.9.2
6
  Requires at least: 4.9
7
- Tested up to: 5.4
 
8
  License: GPLv2 or later
9
 
10
  Add related posts to your WordPress site with inbuilt caching. Supports thumbnails, shortcodes, widgets and custom post types!
@@ -41,6 +42,12 @@ And the default inbuilt styles allow you to switch between gorgeous thumbnail-ri
41
  * Customise which HTML tags to use for displaying the output in case you don't prefer the default `list` format
42
  * **Extendable code**: CRP has tonnes of filters and actions that allow any developer to easily add features, edit outputs, etc.
43
 
 
 
 
 
 
 
44
  = Extensions/Addons =
45
 
46
  * [Related Posts by Categories and Tags](https://webberzone.com/downloads/crp-taxonomy/)
@@ -171,6 +178,17 @@ You can insert the related posts anywhere in your post using the `[crp]` shortco
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
 
 
 
 
 
 
174
  = 2.9.2 =
175
 
176
  Release post: [https://webberzone.com/blog/contextual-related-posts-v2-9-0/](https://webberzone.com/blog/contextual-related-posts-v2-9-0/)
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: 2.9.3
6
  Requires at least: 4.9
7
+ Tested up to: 5.5
8
+ Requires PHP: 5.6
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!
42
  * Customise which HTML tags to use for displaying the output in case you don't prefer the default `list` format
43
  * **Extendable code**: CRP has tonnes of filters and actions that allow any developer to easily add features, edit outputs, etc.
44
 
45
+ = mySQL FULLTEXT indices =
46
+
47
+ On activation, the plugin creates three mySQL FULLTEXT indices (or indexes) that are then used to find the related posts in the `*_posts`. These are for `post_content`, `post_title` and `(post_title,post_content)`. If you're running a multisite installation, then this is created for each of the blogs on activation. All these indices occupy space in your mySQL database but are essential for the plugin to run.
48
+
49
+ You have two sets of options in the settings page which allows you to remove these indices when you deactivate or delete the plugin. The latter is true by default.
50
+
51
  = Extensions/Addons =
52
 
53
  * [Related Posts by Categories and Tags](https://webberzone.com/downloads/crp-taxonomy/)
178
 
179
  == Changelog ==
180
 
181
+ = 2.9.3 =
182
+
183
+ Release post: [https://webberzone.com/blog/contextual-related-posts-v2-9-3/](https://webberzone.com/blog/contextual-related-posts-v2-9-3/)
184
+
185
+ * Features:
186
+ * New constant `CRP_VERSION` to hold the current version of the plugin
187
+ * New setting to delete FULLTEXT indices on deactivation
188
+
189
+ * Enhancements:
190
+ * Added the `$args` attribute to the filters in main-query.php
191
+
192
  = 2.9.2 =
193
 
194
  Release post: [https://webberzone.com/blog/contextual-related-posts-v2-9-0/](https://webberzone.com/blog/contextual-related-posts-v2-9-0/)