Skip to content

Commit

Permalink
manual_related and include_post_ids stopped working
Browse files Browse the repository at this point in the history
Fixes #206
  • Loading branch information
ajaydsouza committed Jul 28, 2024
1 parent 57c60f4 commit 6392a92
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contextual-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Contextual Related Posts
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates
* Version: 3.5.3
* Version: 3.5.4-beta1
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/class-crp.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function prepare_query_args( $args = array() ) {

$defaults = array(
'include_cat_ids' => 0,
'include_post_ids' => 0,
'include_post_ids' => null,
'offset' => 0,
'postid' => false,
'strict_limit' => true,
Expand Down
4 changes: 2 additions & 2 deletions includes/frontend/class-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public static function related_posts( $atts, $content = null ) { // phpcs:ignore
'is_shortcode' => 1,
'offset' => 0,
'include_cat_ids' => '',
'include_post_ids' => '',
'include_post_ids' => null,
'related_meta_keys' => '',
'include_words' => '',
'manual_related' => '',
'manual_related' => null,
);

/**
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,15 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t

== Changelog ==

= 3.5.3 =
= 3.5.4 =

Release post: [https://webberzone.com/announcements/contextual-related-posts-v3-5-0/](https://webberzone.com/announcements/contextual-related-posts-v3-5-0/)

* Fixes:
* `include_post_ids` and `manual_related` were not being passed correctly to the query

= 3.5.3 =

* Modifications:
* Updated Freemius SDK to 2.7.3
* Updated Contextual Related Posts block apiVersion to 3
Expand Down

0 comments on commit 6392a92

Please sign in to comment.