Version Description
Release post: https://webberzone.com/blog/contextual-related-posts-v3-0-0/
- Bug fix:
- Certain posts would trigger a "SHOW TABLES LIKE" error
- Forced
.crp_related figure
margin to 0
Download this release
Release Info
Developer | Ajay |
Plugin | Contextual Related Posts |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.4 to 3.0.5
- contextual-related-posts.php +1 -1
- css/grid.css +1 -1
- css/grid.min.css +1 -1
- css/masonry.css +1 -1
- css/masonry.min.css +1 -1
- css/rounded-thumbs.css +1 -1
- css/rounded-thumbs.min.css +1 -1
- css/thumbs-grid.css +3 -0
- css/thumbs-grid.min.css +1 -1
- includes/class-crp-query.php +1 -1
- includes/header.php +1 -1
- languages/contextual-related-posts-en_US.po +1 -1
- languages/contextual-related-posts-en_US.pot +1 -1
- readme.txt +9 -3
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: 3.0.
|
19 |
* Author: WebberZone
|
20 |
* Author URI: https://webberzone.com
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: Contextual Related Posts
|
16 |
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
|
17 |
* Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
|
18 |
+
* Version: 3.0.5
|
19 |
* Author: WebberZone
|
20 |
* Author URI: https://webberzone.com
|
21 |
* License: GPL-2.0+
|
css/grid.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
5 |
-
.crp_related h3 {
|
6 |
margin: 0 !important;
|
7 |
}
|
8 |
.crp_related ul {
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
5 |
+
.crp_related h3, .crp_related figure {
|
6 |
margin: 0 !important;
|
7 |
}
|
8 |
.crp_related ul {
|
css/grid.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.crp_related{clear:both;margin:10px 0}.crp_related h3{margin:0!important}.crp_related ul{display:grid;gap:10px;margin:0;justify-items:center;list-style:none}.crp_related ul li{text-align:left;word-break:break-word}.crp_related .crp_thumb,.crp_related .crp_title{display:block;margin:0 auto}.crp_related ul li a{text-decoration:none!important}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_clear{clear:both}.crp_author,.crp_date,.crp_excerpt{display:block;font-size:.9em}
|
1 |
+
.crp_related{clear:both;margin:10px 0}.crp_related figure,.crp_related h3{margin:0!important}.crp_related ul{display:grid;gap:10px;margin:0;justify-items:center;list-style:none}.crp_related ul li{text-align:left;word-break:break-word}.crp_related .crp_thumb,.crp_related .crp_title{display:block;margin:0 auto}.crp_related ul li a{text-decoration:none!important}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_clear{clear:both}.crp_author,.crp_date,.crp_excerpt{display:block;font-size:.9em}
|
css/masonry.css
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
margin: 10px auto;
|
29 |
clear: both;
|
30 |
}
|
31 |
-
.crp_related h3 {
|
32 |
margin: 0 !important;
|
33 |
}
|
34 |
.crp_related ul {
|
28 |
margin: 10px auto;
|
29 |
clear: both;
|
30 |
}
|
31 |
+
.crp_related h3, .crp_related figure {
|
32 |
margin: 0 !important;
|
33 |
}
|
34 |
.crp_related ul {
|
css/masonry.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@keyframes wzslideup{from{transform:translateY(80px)}to{transform:translateY(0)}}@-webkit-keyframes wzslideup{from{-webkit-transform:translateY(80px)}to{-webkit-transform:translateY(0)}}@-moz-keyframes wzslideup{from{-moz-transform:translateY(80px)}to{-moz-transform:translateY(0)}}@-webkit-keyframes wzfadein{from{opacity:0}to{opacity:1}}@-moz-keyframes wzfadein{from{opacity:0}to{opacity:1}}@keyframes wzfadein{from{opacity:0}to{opacity:1}}.crp_related{width:100%;margin:10px auto;clear:both}.crp_related h3{margin:0!important}.crp_related ul{margin:1em 0;padding:0;-moz-column-gap:1em;-webkit-column-gap:1em;column-gap:1em;font-size:.85em;list-style-type:none}.crp_related ul li{background:#fff;padding:3px;margin:0 0 1em;width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-shadow:0 1px 1px 0 rgba(0,0,0,.18);border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;border:1px solid #efefef;animation:wzslideup .8s ease-out,wzfadein 1s ease-out;-webkit-animation:wzslideup .8s ease-out,wzfadein 1s ease-out;-moz-animation:wzslideup .8s ease-out,wzfadein 1s ease;font-size:1em;text-align:center;display:inline-block}.crp_related ul li a{display:block;text-decoration:none!important;border:0;box-shadow:none}.crp_related ul li .crp_author a{display:inline}.crp_author,.crp_date,.crp_excerpt{display:block;font-size:.9em}.crp_title{display:block;margin:.25em 0;color:#666}.crp_related ul li a:hover{color:#666;border-color:#888;text-decoration:none!important}.crp_related ul li:hover{box-shadow:0 5px 20px 3px rgba(0,0,0,.1)!important;-webkit-transition:all .2s;-webkit-transform:scale(1.03,1.03);-moz-transition:all .2s;-moz-transform:scale(1.03,1.03);transition:all .2s;transform:scale(1.03)}@media only screen and (min-width:700px){.crp_related ul{-moz-column-count:2;-webkit-column-count:2;column-count:2}}@media only screen and (min-width:900px){.crp_related ul{-moz-column-count:3;-webkit-column-count:3;column-count:3}}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_clear{clear:both}
|
1 |
+
@keyframes wzslideup{from{transform:translateY(80px)}to{transform:translateY(0)}}@-webkit-keyframes wzslideup{from{-webkit-transform:translateY(80px)}to{-webkit-transform:translateY(0)}}@-moz-keyframes wzslideup{from{-moz-transform:translateY(80px)}to{-moz-transform:translateY(0)}}@-webkit-keyframes wzfadein{from{opacity:0}to{opacity:1}}@-moz-keyframes wzfadein{from{opacity:0}to{opacity:1}}@keyframes wzfadein{from{opacity:0}to{opacity:1}}.crp_related{width:100%;margin:10px auto;clear:both}.crp_related figure,.crp_related h3{margin:0!important}.crp_related ul{margin:1em 0;padding:0;-moz-column-gap:1em;-webkit-column-gap:1em;column-gap:1em;font-size:.85em;list-style-type:none}.crp_related ul li{background:#fff;padding:3px;margin:0 0 1em;width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-shadow:0 1px 1px 0 rgba(0,0,0,.18);border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;border:1px solid #efefef;animation:wzslideup .8s ease-out,wzfadein 1s ease-out;-webkit-animation:wzslideup .8s ease-out,wzfadein 1s ease-out;-moz-animation:wzslideup .8s ease-out,wzfadein 1s ease;font-size:1em;text-align:center;display:inline-block}.crp_related ul li a{display:block;text-decoration:none!important;border:0;box-shadow:none}.crp_related ul li .crp_author a{display:inline}.crp_author,.crp_date,.crp_excerpt{display:block;font-size:.9em}.crp_title{display:block;margin:.25em 0;color:#666}.crp_related ul li a:hover{color:#666;border-color:#888;text-decoration:none!important}.crp_related ul li:hover{box-shadow:0 5px 20px 3px rgba(0,0,0,.1)!important;-webkit-transition:all .2s;-webkit-transform:scale(1.03,1.03);-moz-transition:all .2s;-moz-transform:scale(1.03,1.03);transition:all .2s;transform:scale(1.03)}@media only screen and (min-width:700px){.crp_related ul{-moz-column-count:2;-webkit-column-count:2;column-count:2}}@media only screen and (min-width:900px){.crp_related ul{-moz-column-count:3;-webkit-column-count:3;column-count:3}}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_clear{clear:both}
|
css/rounded-thumbs.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
5 |
-
.crp_related h3 {
|
6 |
margin: 0 !important;
|
7 |
}
|
8 |
.crp_related ul {
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
5 |
+
.crp_related h3, .crp_related figure {
|
6 |
margin: 0 !important;
|
7 |
}
|
8 |
.crp_related ul {
|
css/rounded-thumbs.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.crp_related{clear:both;margin:10px 0}.crp_related h3{margin:0!important}.crp_related ul{list-style:none;float:left;margin:0!important;padding:0!important}.crp_related a,.crp_related li{float:left;overflow:hidden;position:relative;text-align:center}.crp_related li{margin:5px!important;border:1px solid #ddd;padding:6px}.crp_related li:hover{background:#eee;border-color:#bbb}.crp_related a{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-decoration:none!important}.crp_related a:hover{text-decoration:none}.crp_related .crp_title{color:#fff!important;position:absolute;display:block;bottom:0;padding:3px;font-size:.9em;text-shadow:.1em .1em .2em #000;background-color:rgba(0,0,0,.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.crp_related li:hover .crp_title{background-color:rgba(0,0,0,.8)}.crp_related li{vertical-align:bottom;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.4);-moz-box-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 1px 2px rgba(0,0,0,.4);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;list-style-type:none}.crp_clear{clear:both}.crp_title:visited{color:#fff!important}
|
1 |
+
.crp_related{clear:both;margin:10px 0}.crp_related figure,.crp_related h3{margin:0!important}.crp_related ul{list-style:none;float:left;margin:0!important;padding:0!important}.crp_related a,.crp_related li{float:left;overflow:hidden;position:relative;text-align:center}.crp_related li{margin:5px!important;border:1px solid #ddd;padding:6px}.crp_related li:hover{background:#eee;border-color:#bbb}.crp_related a{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-decoration:none!important}.crp_related a:hover{text-decoration:none}.crp_related .crp_title{color:#fff!important;position:absolute;display:block;bottom:0;padding:3px;font-size:.9em;text-shadow:.1em .1em .2em #000;background-color:rgba(0,0,0,.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.crp_related li:hover .crp_title{background-color:rgba(0,0,0,.8)}.crp_related li{vertical-align:bottom;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.4);-moz-box-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 1px 2px rgba(0,0,0,.4);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;list-style-type:none}.crp_clear{clear:both}.crp_title:visited{color:#fff!important}
|
css/thumbs-grid.css
CHANGED
@@ -2,6 +2,9 @@
|
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
|
|
|
|
|
|
5 |
.crp_related ul {
|
6 |
display: grid;
|
7 |
grid-gap: 10px;
|
2 |
clear: both;
|
3 |
margin: 10px 0;
|
4 |
}
|
5 |
+
.crp_related h3, .crp_related figure {
|
6 |
+
margin: 0 !important;
|
7 |
+
}
|
8 |
.crp_related ul {
|
9 |
display: grid;
|
10 |
grid-gap: 10px;
|
css/thumbs-grid.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.crp_related{clear:both;margin:10px 0}.crp_related ul{display:grid;grid-gap:10px;margin:0;justify-items:center;list-style:none}.crp_related ul li{text-align:center;border:1px solid #ddd;display:flex;flex-direction:column;word-break:break-word}.crp_related li:hover{background:#eee;border-color:#bbb}.crp_related ul li a.crp_link{flex-grow:1;display:grid;overflow:hidden;padding:3px}.crp_related ul li a.crp_link .crp_thumb{grid-row-start:1;grid-row-end:3;grid-column-start:1;grid-column-end:2}.crp_related ul li a.crp_link .crp_title{display:flex;justify-content:center;align-items:center;grid-row-start:2;grid-row-end:3;grid-column-start:1;grid-column-end:2}.crp_related a{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-decoration:none!important}.crp_related a:hover{text-decoration:none}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_related .crp_title{color:#fff!important;padding:3px;font-size:.9em;text-shadow:.1em .1em .2em #000;background-color:rgba(0,0,0,.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;width:100%;overflow:hidden;line-height:initial}.crp_related li:hover .crp_title{background-color:rgba(0,0,0,.8)}.crp_related li{vertical-align:bottom;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.4);-moz-box-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 1px 2px rgba(0,0,0,.4);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;list-style-type:none}.crp_clear{clear:both}.crp_title:visited{color:#fff!important}
|
1 |
+
.crp_related{clear:both;margin:10px 0}.crp_related figure,.crp_related h3{margin:0!important}.crp_related ul{display:grid;grid-gap:10px;margin:0;justify-items:center;list-style:none}.crp_related ul li{text-align:center;border:1px solid #ddd;display:flex;flex-direction:column;word-break:break-word}.crp_related li:hover{background:#eee;border-color:#bbb}.crp_related ul li a.crp_link{flex-grow:1;display:grid;overflow:hidden;padding:3px}.crp_related ul li a.crp_link .crp_thumb{grid-row-start:1;grid-row-end:3;grid-column-start:1;grid-column-end:2}.crp_related ul li a.crp_link .crp_title{display:flex;justify-content:center;align-items:center;grid-row-start:2;grid-row-end:3;grid-column-start:1;grid-column-end:2}.crp_related a{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-decoration:none!important}.crp_related a:hover{text-decoration:none}.crp_related ul li img{max-width:100%;height:auto;display:block;margin:0 auto}.crp_related .crp_title{color:#fff!important;padding:3px;font-size:.9em;text-shadow:.1em .1em .2em #000;background-color:rgba(0,0,0,.5);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;width:100%;overflow:hidden;line-height:initial}.crp_related li:hover .crp_title{background-color:rgba(0,0,0,.8)}.crp_related li{vertical-align:bottom;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.4);-moz-box-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 1px 2px rgba(0,0,0,.4);-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;list-style-type:none}.crp_clear{clear:both}.crp_title:visited{color:#fff!important}
|
includes/class-crp-query.php
CHANGED
@@ -376,7 +376,7 @@ if ( ! class_exists( 'CRP_Query' ) ) :
|
|
376 |
|
377 |
if ( $this->query_args['match_content'] ) {
|
378 |
$match_fields[] = "$wpdb->posts.post_content";
|
379 |
-
$match_fields_content[] = crp_excerpt( $this->source_post, min( $this->query_args['match_content_words'], CRP_MAX_WORDS ), false );
|
380 |
}
|
381 |
|
382 |
if ( isset( $this->crp_post_meta['keyword'] ) ) {
|
376 |
|
377 |
if ( $this->query_args['match_content'] ) {
|
378 |
$match_fields[] = "$wpdb->posts.post_content";
|
379 |
+
$match_fields_content[] = str_ireplace( ' from', '', crp_excerpt( $this->source_post, min( $this->query_args['match_content_words'], CRP_MAX_WORDS ), false ) );
|
380 |
}
|
381 |
|
382 |
if ( isset( $this->crp_post_meta['keyword'] ) ) {
|
includes/header.php
CHANGED
@@ -55,7 +55,7 @@ function crp_heading_styles() {
|
|
55 |
$style = $style_array['name'];
|
56 |
$extra_css = $style_array['extra_css'];
|
57 |
|
58 |
-
wp_register_style( "crp-style-{$style}", plugins_url( "css/{$style}.min.css", CRP_PLUGIN_FILE ), array(), '1.0' );
|
59 |
wp_enqueue_style( "crp-style-{$style}" );
|
60 |
wp_add_inline_style( "crp-style-{$style}", $extra_css );
|
61 |
}
|
55 |
$style = $style_array['name'];
|
56 |
$extra_css = $style_array['extra_css'];
|
57 |
|
58 |
+
wp_register_style( "crp-style-{$style}", plugins_url( "css/{$style}.min.css", CRP_PLUGIN_FILE ), array(), '1.0.1' );
|
59 |
wp_enqueue_style( "crp-style-{$style}" );
|
60 |
wp_add_inline_style( "crp-style-{$style}", $extra_css );
|
61 |
}
|
languages/contextual-related-posts-en_US.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contextual Related Posts\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2021-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Ajay D'Souza\n"
|
8 |
"Language-Team: WebberZone\n"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contextual Related Posts\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2021-02-07 11:02+0000\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Ajay D'Souza\n"
|
8 |
"Language-Team: WebberZone\n"
|
languages/contextual-related-posts-en_US.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Contextual Related Posts\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
"PO-Revision-Date: \n"
|
8 |
"Last-Translator: Ajay D'Souza\n"
|
9 |
"Language-Team: WebberZone\n"
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Contextual Related Posts\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2021-02-07 11:02+0000\n"
|
7 |
"PO-Revision-Date: \n"
|
8 |
"Last-Translator: Ajay D'Souza\n"
|
9 |
"Language-Team: WebberZone\n"
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: related posts, related, related articles, contextual related posts, similar posts, related posts widget
|
3 |
Contributors: webberzone, Ajay
|
4 |
Donate link: https://ajaydsouza.com/donate/
|
5 |
-
Stable tag: 3.0.
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
@@ -174,10 +174,16 @@ You can insert the related posts anywhere in your post using the `[crp]` shortco
|
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
-
= 3.0.
|
178 |
|
179 |
Release post: [https://webberzone.com/blog/contextual-related-posts-v3-0-0/](https://webberzone.com/blog/contextual-related-posts-v3-0-0/)
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
* Enhancement/Modifications:
|
182 |
* `include_cat_ids` and `exclude_categories` will also accept custom taxonomy `term_taxonomy_id`s
|
183 |
* Thumbnail's `img` tag is wrapped in `<figure>`
|
@@ -235,5 +241,5 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
|
|
235 |
|
236 |
== Upgrade Notice ==
|
237 |
|
238 |
-
= 3.0.
|
239 |
Bug fixes. Please read the release post on https://webberzone.com
|
2 |
Tags: related posts, related, related articles, contextual related posts, similar posts, related posts widget
|
3 |
Contributors: webberzone, Ajay
|
4 |
Donate link: https://ajaydsouza.com/donate/
|
5 |
+
Stable tag: 3.0.5
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= 3.0.5 =
|
178 |
|
179 |
Release post: [https://webberzone.com/blog/contextual-related-posts-v3-0-0/](https://webberzone.com/blog/contextual-related-posts-v3-0-0/)
|
180 |
|
181 |
+
* Bug fix:
|
182 |
+
* Certain posts would trigger a "SHOW TABLES LIKE" error
|
183 |
+
* Forced `.crp_related figure` margin to 0
|
184 |
+
|
185 |
+
= 3.0.4 =
|
186 |
+
|
187 |
* Enhancement/Modifications:
|
188 |
* `include_cat_ids` and `exclude_categories` will also accept custom taxonomy `term_taxonomy_id`s
|
189 |
* Thumbnail's `img` tag is wrapped in `<figure>`
|
241 |
|
242 |
== Upgrade Notice ==
|
243 |
|
244 |
+
= 3.0.5 =
|
245 |
Bug fixes. Please read the release post on https://webberzone.com
|