• Resolved 1lucek

    (@1lucek)


    Hi.
    After update to version 3.0.0 my website stop to show any related posts. Under a post or page and I also test for widget – same no any data showed there.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hello,

    experiencing the same on 10 different websites after updating to v3.0.1.

    I confirm that setting the value “Related posts should be newer than” to a big number it partially solves the issue. However, I would prefer to leave it to 0, as it was working fine till now.

    By the way, in the <link> tag I’ve noticed that the CSS has a wrong file name. It just says “.min.css”:

    <link rel='stylesheet' id='crp-style--css' href='/wp-content/plugins/contextual-related-posts/css/.min.css?ver=1.0' type='text/css' media='all' />

    This is of course leading to a 404.

    Hope it may help.

    Thank you all.

    Plugin Author Ajay

    (@ajay)

    v3.0.2 fixes a bug that had an issue.

    @affiliatebrothers
    Please can you check your settings page and pick a style or no-style and save settings?

    Hi,

    version v3.0.2

    @ajay
    So, choosing no-style always outputs the link tag as I indicated above, meaning the file name shows just .min.css, leading to a 404.

    On the contrary, choosing a style (for example rounded thumbnails), the link tag is replaced by some inline CSS and everything works fine.

    Additionally, “Related posts should be newer than” now works with a value of 0 too.

    Hope this helps.

    Thank you all.

    Plugin Author Ajay

    (@ajay)

    @affiliatebrothers
    Thanks – let me check this out – I’m not sure why that is the case – probably the empty check failing – will you be able to make one edit in the plugin?

    https://github.com/WebberZone/contextual-related-posts/blob/d2a86a15e7347256934d8037ee90fdcc54918f87/includes/header.php#L54

    Should check for $style_array[‘name’] instead of just $style_array

    @ajay

    the empty check on $style_array[‘name’] is solving the issue:

    function crp_heading_styles() {
    
    	$style_array = crp_get_style();
    
    	if ( ! empty( $style_array['name'] ) ) {
    		$style     = $style_array['name'];
    		$extra_css = $style_array['extra_css'];
    
    		wp_register_style( "crp-style-{$style}", plugins_url( "css/{$style}.min.css", CRP_PLUGIN_FILE ), array(), '1.0' );
    		wp_enqueue_style( "crp-style-{$style}" );
    		wp_add_inline_style( "crp-style-{$style}", $extra_css );
    	}
    }
    add_action( 'wp_enqueue_scripts', 'crp_heading_styles' );

    Thanks.

    Plugin Author Ajay

    (@ajay)

    Thank you for confirming this – I will include this in v3.0.3 which I’ll likely release tomorrow.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘No related posts after update to 3.0’ is closed to new replies.