"WordPress"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 |
잔글 |
||
198번째 줄: | 198번째 줄: | ||
:*wp_term_relationships : 포스트와 링크 등의 콘텐츠와 텍사노미 결합 | :*wp_term_relationships : 포스트와 링크 등의 콘텐츠와 텍사노미 결합 | ||
− | |||
− | |||
− | |||
=== This page contains the following errors: === | === This page contains the following errors: === | ||
<div style="font-family:monospace;font-size:12px">error on line 1 at column 277: Opening and ending tag mismatch: table line 0 and colgroup </div> | <div style="font-family:monospace;font-size:12px">error on line 1 at column 277: Opening and ending tag mismatch: table line 0 and colgroup </div> |
2016년 6월 15일 (수) 15:14 판
Blog 솔루션인 WordPress를 정리 합니다.
- 다운로드 : http://wordpress.org/
- 라이선스 : GPL 2.0
- 플랫폼 : PHP
CentOS에 WordPress 설치
CentOS에 WordPress 3.5.1 설치
CentOS에서 WordPress를 설치 합니다.
- 사전 준비 사항
- MySQL 설치
- Apache HTTP Server 설치
- PHP 설치
- WordPress를 다운로드하여 원하는 위치에 놓고 압축을 풉니다.
cd /cloudnas/install wget http://wordpress.org/latest.tar.gz tar xvzf latest.tar.gz chown -R apache:apache wordpress mv wordpress /cloudnas/www/html
- URL로 접속하여 설치를 진행 합니다.
- http://ko.wordpress.org/에 접속하여 한글팩을 다운로드 합니다.
cd /cloudnas/install wget http://ko.wordpress.org/wordpress-3.6-ko_KR.tar.gz tar xvzf wordpress-3.6-ko_KR.tar.gz cd wordpress/wp-content chown -R apache:apache languages mv languages /cloudnas/www/html/wordpress/wp-content cd /cloudnas/www/html/wordpress vi wp-config.php define('WPLANG', 'ko_KR');
WordPress 4.0 설치
WordPress 4.0 다운로드
cd install ### wget https://wordpress.org/latest.tar.gz wget https://downloads.wordpress.org/release/ko_KR/wordpress-4.0.zip |
createDatabase ossblog ossblog ossblog ????
WordPress 구조
파일 구조
- index.php
- wp-blog-header.php
- wp-load.php
- wp-config.php : DB 등 정보 설정
- wp-settings.php
- wp-includes/load.php
- wp-includes/default-constant.php
- wp-includes/version.php
- wp-includes/compat.php
- wp-includes/functions.php
- wp-includes/class-wp.php
- wp-includes/class-wp-error.php
- wp-includes/plugin.php
- wp-includes/pomo/mo.php
- wp-includes/default-filters.php
- wp-includes/ms-blogs.php
- wp-includes/ms-settings.php
- wp-includes/l10n.php
- wp-includes/class-wp-walker.php
- wp-includes/class-wp-ajax-response.php
- wp-includes/formatting.php
- wp-includes/capabilities.php
- wp-includes/query.php
- wp-includes/date.php
- wp-includes/theme.php
- wp-includes/class-wp-theme.php
- wp-includes/template.php
- wp-includes/user.php
- wp-includes/meta.php
- wp-includes/general-template.php
- wp-includes/link-template.php
- wp-includes/author-template.php
- wp-includes/post.php
- wp-includes/post-template.php
- wp-includes/revision.php
- wp-includes/post-formats.php
- wp-includes/post-thumbnail-template.php
- wp-includes/category.php
- wp-includes/category-template.php
- wp-includes/comment.php
- wp-includes/comment-template.php
- wp-includes/rewrite.php
- wp-includes/feed.php
- wp-includes/bookmark.php
- wp-includes/bookmark-template.php
- wp-includes/kses.php
- wp-includes/cron.php
- wp-includes/deprecated.php
- wp-includes/script-loader.php
- wp-includes/taxonomy.php
- wp-includes/update.php
- wp-includes/canonical.php
- wp-includes/shortcodes.php
- wp-includes/class-wp-embed.php
- wp-includes/media.php
- wp-includes/http.php
- wp-includes/class-http.php
- wp-includes/widgets.php
- wp-includes/nav-menu.php
- wp-includes/nav-menu-template.php
- wp-includes/admin-bar.php
- wp-includes/ms-functions.php
- wp-includes/ms-default-filters.php
- wp-includes/ms-deprecated.php
- wp-includes/vars.php
- wp-includes/pluggable.php
- wp-includes/pluggable-deprecated.php
- wp-includes/locale.php
- STYLESHEETPATH/functions.php 또는 TEMPLATEPATH/functions.php
- wp()
- wp-includes/template-loader.php
Plugin
- Hooks 방식으로 제작되는 Plugin의 종류
- Actions : 실행
- 키워드 : http://codex.wordpress.org/Plugin_API/Action_Reference
- do_action() 함수가 사용된 곳에 적용
- Filters : 실행 후 결과 반환
- 키워드 : http://codex.wordpress.org/Plugin_API/Filter_Reference
- apply_filters() 함수가 사용된 곳에 적용
- Plugin 적용 방법
- wp-includes/functions.php, ms-functions.php 파일에 추가
- 'include', 'include_once', 'require', 'require_once' 등을 사용하여 Plugin 파일 추가
- wp-includes/themes/테마명/functions.php 파일에 추가
- STYLESHEETPATH/functions.php 또는 TEMPLATEPATH/functions.php
- 폴더 : wp-content/plugins/플러그인폴더/
- 참고 문헌
Thema
- 폴더 : wp-content/themes/테마폴더/
- index.php
- 참고 문헌
Language
- 폴더 : wp-content/languages/
- ko_KR.po, ko_KR.mo
- admin-ko_KR.po, admin-ko_KR.mo
- plugins/~.po, ~.mo
- themes/~.po, ~.mo
Database 구조
- WordPress용 주요 테이블
- wp_users : 사용자
- wp_usermeta : 사용자의 메타데이터
- wp_options : 설정 메뉴의 옵션값
- wp_posts : 포스트
- wp_postmeta : 포스트의 메타데이터, Post의 부가적인 속성
- wp_comments : 댓글
- wp_commentsmeta : 댓글의 메타테이터
- wp_links : 링크 관리자 기능에서 추가한 링크
- wp_terms : 용어
- wp_term_taxonomy : 각 용어에 할당된 텍사노미 (분류 계층도)
- wp_term_relationships : 포스트와 링크 등의 콘텐츠와 텍사노미 결합
This page contains the following errors:
error on line 1 at column 277: Opening and ending tag mismatch: table line 0 and colgroup
Below is a rendering of the page up to the first error.
</parsererror> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
This page contains the following errors:
error on line 1 at column 667: Opening and ending tag mismatch: table line 0 and colgroup
Below is a rendering of the page up to the first error.
</parsererror>
Database
유용한 Plugin
- Better WordPress Recent Comments - 최근 댓글 꾸미는 플러그인, 2014.01
- WP Visual Icon Fonts - 폰트 아이콘 쉽게 사용하게 해주는 플러그인
- WordPress Popular Posts - 인기글 목록 보여주는 플러그인
- 관련 글 보여주는 플러그인 두가지
- Contact Form 7 - 폼메일 플러그인
- Easy Table - 글에 표 쉽게 넣게 해주는 플러그인
- Google Analytics for WordPress
- List Category Posts - 다양하게 글 목록 출력시켜주는 플러그인
- WooCommerce Paygate JT - 한국형 워드프레스 쇼핑몰 결제 모듈
- 위젯(Widget) 내보내기 가져오기 플러그인 두가지
- 한국형 게시판 플러그인 두가지
- 회원제 사이트, 멤버쉽 사이트 만드는 플러그인 4가지
- WordPress Related Posts : 관련 Post 글 목록 표시
- WordPress Popular Posts : 인기글 목록 표시
- List category posts :
관리자 가이드
Port 변경
mysql -uwordpress -p wordpress
update wp_options |
WordPress 이관
"도구 -> 내보내기" 메뉴에서 xml 파일로 다운로드 한 후, "도구 -> 가져오기"로 xml 파일을 가져 옵니다.