fwmone
Forum Replies Created
-
Thanks. It turned out that Yoast SEO 16.2 is incompatibel with Relative URL plugin (https://wordpress.org/plugins/relative-url/). This plugin removes the hostname. It seems that 16.2 does a regex check on URLs and throws this JavaScript error: “An error occurred while running ‘mapSelect’: URL constructor: / is not a valid URL.”
Thanks for your reply. I tried that w/o any success. Same error. My installation is up-to-date.
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockThanks a lot, tested it and it works well!
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockYes, I tested it in my environment thoroughly and it worked well.
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockThanks for your reply. For this to work, you also have to make this change in main-query.php…
// Check exclusions. if ( crp_exclude_on( $post, $args) ) { return ''; // Exit without adding related posts. }(add args argument to function call)
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockAs a temporary solution, I commented out
// Check exclusions. if ( crp_exclude_on( $post ) ) { return ''; // Exit without adding related posts. }in main-query.php. This seems to bring back how it worked before 3.0.6.
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockP. S. I found the problem. It’s in main-query.php:
if ( crp_exclude_on( $post ) ) { return ''; // Exit without adding related posts. }…because…
// If the DO NOT DISPLAY meta field is set. $crp_post_meta = get_post_meta( $post->ID, 'crp_post_meta', true ); if ( isset( $crp_post_meta['crp_disable_here'] ) ) { $crp_disable_here = $crp_post_meta['crp_disable_here']; } else { $crp_disable_here = 0; } if ( $crp_disable_here ) { return true; }I disabled showing CRP automatically at the end of this specific page because otherwise the block makes no sense – I would get two blocks instead (the one I included manually and the other that would be added at the end of the page). Up to 3.0.5, this worked.
Forum: Plugins
In reply to: [Contextual Related Posts] 3.0.6 breaks Related Posts blockThanks for your fast reply.
I don’t get any error. Instead, it shows “This block will be shown empty” (roughly translated from German). The “related-posts” renderer returns HTTP 200 ‘rendered: “”‘.
These are my settings: https://ibb.co/mRZMQXt