function get_single_template() {
$object = get_queried_object();
$id = get_queried_object_id();
$templates = array();
if ( $object )
$templates[] = "single-{$object->post_type}.php";
if ( $id )
$templates[] = "single-$id.php";
$templates[] = "single.php";
return get_query_template( 'single', $templates );
}
Use the [avatar_upload] shortcode to add a standalone uploader to a front page or widget. This uploader is only visible to logged-in users.
<?php echo do_shortcode( '[avatar_upload]' ); ?>
mb_substr($post->post_title, 0, 1, 'utf-8');
$id = icl_object_id(get_the_ID(), 'page', false,ICL_LANGUAGE_CODE);
is_page($id){//id page about
//include template page-about
}else{
//include template page-default
}