Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi namrons,

    I’m currently on vacation. I’ll look at it monday or tuesday.
    If you’re a coder maybe one of the snippets in the FAQ can help.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    This code will exclude the menu form the default featured image.

    function dfi_exclude_menu ( $dfi_id, $post_id ) {
    	$post = get_post($post_id);
    
    	if ( 'nav_menu_item' === $post->post_type ) {
    		return 0; // the image id
    	}
    	return $dfi_id; // the original featured image id
    }
    add_filter( 'dfi_thumbnail_id', 'dfi_exclude_menu', 10, 2 );

    Either make it a lose plugin or add this to the functions.php of the theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conflict with menu image plugin?’ is closed to new replies.