1
WordPress 용 첨부 파일 양식에 사용자 정의 필드가 있습니다.첨부 파일 사용자 정의 필드 값 가져 오기
이 &에 값을 저장하면 공개 측에서 값을 표시하려고합니다.
하지 않습니다이 도움이 될이 http://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata으로가는, 그러나 : <?php wp_get_attachment_metadata($attachment_id, $unfiltered); ?>
누군가가 도움을 주시겠습니까?
Array
(
[width] =>
[height] =>
[file] =>
[sizes] => Array
(
[thumbnail] => Array
(
[file] =>
[width] =>
[height] =>
[mime-type] =>
)
[medium] => Array
(
[file] =>
[width] =>
[height] =>
[mime-type] =>
)
)
[image_meta] => Array
(
[aperture] =>
[credit] =>
[camera] =>
[caption] =>
[created_timestamp] =>
[copyright] =>
[focal_length] =>
[iso] =>
[shutter_speed] =>
[title] =>
)
)
그래서,이 첨부 datails입니다 :
는
답장을 보내 주셔서 감사합니다. 그러나, 나는'get_post_meta ($ post-> ID, '** 여기에 ** 내 필드 **', true)를 시도했으며 결과는 비어 있습니다. 어떻게 디버깅합니까? – michaelmcgurk
사용자 정의 게시 메타를 추가 하시겠습니까? 일반적으로, 워드 프레스 첨부 페이지에는 사용자 정의 게시 메타 영역이 없습니다. 당신은 그것에게 주문 테이블을해야한다. 왜 메타를 추가합니까? –
다음은 첨부 파일의 스크린 그랩입니다 : http://imgur.com/BiSXGxx -'languages'와'products' 모두 사용자 정의 필드입니다. – michaelmcgurk