워드프레스 함수 리스트

워드프레스 템플릿 함수 리스트

bloginfo(‘charset’) >> charset 정보 가져옴

bloginfo(‘name’) >> 사이트제목

bloginfo(‘description’) >> 테그라인

home_url() >>사이트주소

language_attributes() >> 설정에서 정한 언어를 불러옴

wp_title(‘|’) >> 첫페이지에서 아무것도 나타내지 않지만 상황에 맞는 제목을 출력 (사이트제목과의 구분은 | 로 함)

bloginfo(‘stylesheet_url’) >> 스타일시트 주소

body_class(); >> 성황에 맞는 클래스값들이 만들어짐

wp_head(); >> 헤더파일 출력

wp_footer(); >> 당연히 푸터파일 출력

the_title(); >> 포스트제목(글제목)

the_permalink >> 글 주소

get_the_date >> 날짜출력

get_the_time >> 시간출력

the_author >> 작성자출력

the_category >> 카테고리

the_tags >> 테그출력

the_content >> 내용나오는데 특성이미지도 같이나오네.

the_excerpt >> 글자만 나오고 속성에 나오는 글자수 설정할수 있다.

is_home() >> 홈페이지면 참거짓

is_category() >> 카테고리 페이지에서 참거짓

is_tag() >> 태그 참거짓

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
모든 댓글 보기
0
생각을 나눠주시면 감사해요!x
()
x
Please enter Google Username or ID to start!
Example: clip360net or 116819034451508671546
Title
Caption
File name
Size
Alignment
Link to
  Open new windows
  Rel nofollow