Viewing 6 replies - 1 through 6 (of 6 total)
  • I wrote about the same problem a few minutes ago, that’s a real problem for my use case. And did you get also a white page And/or double content when activating Excerpt then?

    Here my described problem:
    https://wordpress.org/support/topic/wp-white-page-error-when-excerpt-on-and-show-category-of-actual-post?replies=1

    A solution would be very nice! Thanks a lot!

    Here is the solution, I hope the Developer integrate it in the official release soon.

    – Go to plugin directory of recent-posts-widget-extended
    – into folder ../plugins/recent-posts-widget-extended/includes
    – edit file functions.php in that folder (../plugins/recent-posts-widget-extended/includes)

    (...)
    // Allow plugins/themes developer to filter the default query.
    	$query = apply_filters( 'rpwe_default_query_arguments', $query );
    
    //EDIT START ----------------------------------
        global $post;
        $thePostID = $post->ID;
        $query['post__not_in'] = array($thePostID);
    //EDIT END ----------------------------------
    
    	// Perform the query.
    	$posts = new WP_Query( $query );
    
    	return $posts;
    (...)

    In this code example you see my edit. It is from “EDIT START” till “EDIT END” inserted.

    Best regards
    Manni

    Sadly, the Plugin Autor has not inserted the fix in last update. Please do that. Every time Plugin is used with excerpt and the same post, which is actively opened, is in the recent post list, a WP white page is shown.

    Code to fix that is one posting above.

    Plugin Author satrya

    (@satrya)

    Exclude post features is not ready yet, I consider to release it in version 1.0.0 soon 🙂

    ok. but please know that actually for every one who use your plugin with excerpt and the actual active post is shown in the list, the page gets broken … white Page.
    The code change for your plugin to fix that directly is 3 posts above and I think it’s better with it as without. Perhaps consider to implement ist for a first quick bug fix. 🙂

    I am not sure why this post is flagged as “resolved”.

    I updates WP and your plugin, and again my site gets broken, because the fix I wrote 4 posts above was not included. I inserted the fix in my plugins file as written above, and all works fine again. 🙂

    Again, would be nice when you would implement it.

    Thanks a lot and best regards

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Excluding current post from list of recent posts’ is closed to new replies.