Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Hey Rich!

    I don’t know that this is something which can/should be integrated into the plugin, but you can add some code to your site to make the featured image plugin honor the title toggle settings. I tried this and it seemed to work, but you’d want to test it further:

    add_filter( 'display_featured_image_genesis_do_not_move_titles', 'prefix_override_title_toggle' );
    function prefix_override_title_toggle( $post_types ) {
    	global $post;
    	$post_type = get_post_type( $post );
    
    	// See if post type has pages turned off by default
    	$default  = genesis_get_option( 'be_title_toggle_' . $post_type );
    	$override = get_post_meta( $post->ID, 'be_title_toggle_hide', true );
    	if ( ! empty( $default ) ) {
    		$override = get_post_meta( $post->ID, 'be_title_toggle_show', true );
    		$post_types[] = $post_type;
    	}
    
    	if ( ! empty( $override ) ) {
    		$post_types[] = $post_type;
    	}
    
    	return $post_types;
    }

    Hope that helps get you started!

    Thread Starter richstrauss

    (@richstrauss)

    Wow, that works perfect out of the box. Thank you so much, awesomeness ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with Genesis Title Toggle’ is closed to new replies.