lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • WP Tip & Tech 2017‧08‧02

    wp-json 으로 json 호출시 썸네일과 커스텀 필드 받기

    사용자 입력 필드나 썸네일 url을 얻어내기 위한 코드이다. 테마의 function.php에 추가한다. add_filter('rest_prepare_post', 'append_acf'); function append_acf($response) { $thumbnail_id = get_post_thumbnail_id( $post->ID ); $thumbnail = wp_get_attachment_image_src( $thumbnail_id ); $_data['featured_image_thumbnail_url'] = $thumbnail[0]; $response->data['acf'] = get_fields($response->data['id']); $response->data['thumbnail'] = $thumbnail[0]; return $response; };  

popular

  • nextjs, aws codebuild 오류 - Failed to compile. Module not found: Can't resolve ...
  • php - 글자 수 가져오기 strlen
  • sublime text2 sftp 접속시 encoding error
  • YN0028: The lockfile would have been created by this install, which is explicitly forbidden.
  • 로고디자인 - 블랙과 화이트 색상을 이용한 심플한 로고 디자인 모음
  • 키보드 키 코드
  • `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.
  • react, vue - Uncaught SyntaxError: Unexpected token
  • OMG 케릭터 아이폰 배경화면
  • React Native 앱 이름 한글로 설정하다 안드로이드 Api 33 (OS 13) 에서 강제 종료 현상

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....