2015-01-12 4 views
1

iFrame을 통해 다른 사이트의 데이터를 가져 오려고합니다. 다른 사이트에서는 우리의 유리한 테마를 사용하여 Wordpress 내에 shtml 파일이 있어야합니다. Wordpress에는 .shtml로 끝나는 URL이 없습니다.이 파일을 WordPress에 어떻게 추가 할 수 있습니까?Wordpress에 shtml 파일을 추가하는 방법

답변

0

WordPress는 기본적으로이 파일 형식을 인식하지 않으므로 추가해야합니다.

추가] 테마에서이 당신의 functions.php에 파일을

function my_theme_custom_upload_mimes($existing_mimes) { 
// add shtml to the list of mime types 
$existing_mimes['shtml'] = 'text/html'; 

// return the array back to the function with our added mime type 
return $existing_mimes; 
} 
add_filter('mime_types', 'my_theme_custom_upload_mimes'); 
+0

감사합니다,하지만 function.php 파일, 어떻게 내가 실제를 추가하는 것이 추가 한 후. newsletter.shtml 파일? –

+0

Wordpress에서 미디어 라이브러리를 통해 .shtml을 업로드 할 수 있어야합니다. –

관련 문제