Viewing 1 replies (of 1 total)
  • Thread Starter eqhes

    (@davidcs66)

    I’m using the “Appply” Woothemes theme, so I solved this copying /appply/includes/theme-functions.php into /child-theme/includes/theme-functions.php. On the child theme file I replaced this code:

    } elseif ( is_single() && get_post_type( $post->ID ) != "post" ) {
    		$title = ucfirst( get_post_type( $post->ID ) ) . ' | ' . get_the_title();
    	}

    By this other:

    } elseif ( is_single() && get_post_type( $post->ID ) != "post" ) {
    		$title = ucfirst( get_post_type( $post->ID ) ) . ' | ' . get_the_title();
    		$post_type = ucfirst( get_post_type( $post->ID ) );
    		if( $post_type === "Feature" ){
    			$title = get_the_title();
    		}
    	}

    Maybe it’s not the best approach, but this works as expected and working as WordPress suggests for child themes.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature post title’ is closed to new replies.