Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jabberwo

    (@jabberwo)

    Fix:

    Replace the following function in the class

    // returne the "default" post_id, not the revision [WITH BUGFIX BW H]
    	function get_correct_post_id($post_id){
    
    		$post_id_parent = get_post($post_id)->post_parent;
    
    		// Determines if its a post revision
    		if(wp_is_post_revision($post_id)){
    			$post_id = wp_is_post_revision($post_id);
    		}
    
    		return $post_id;
    	}
    Plugin Author johannesfosseus

    (@johannesfosseus)

    Hi, thank you, this in included in the new 1.2.4 version, again thank you Jabberwo.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Related Images] [Bug] parent inherits related image if connected to third level page’ is closed to new replies.