Jerome’s Keywords Plugin 설치

태그를 만들기 위해 Jerome’s Keywords Plugin을 설치했다. 설치과정이 상당히 복잡하여 나중에 uninstall을 위해 정리를 한다.

1. 포스트 태그는 다음과 같이 간단히 한 줄로 표시하여 나타내면 된다. 수정한 파일은 index, single, archive 등이다.

the_post_keytags();

2. 태그 크라우드를 만드는 방법이 약간 복잡한데, 우선 새로운 page를 만드는데 page template를 테마 폴더에 올린 cosmos.php로 한다. 이 파일은 all tag 출력시 보여지는 양식이다. sidebar에 아래 코드 형식을 추가했다.

all_keywords();

3. 각각의 태그를 클릭했을때 출력해주는 파일을 올린다.

By default, the plugin looks for a file named keywords.php in your active template’s directory. If it can’t find this file, it will try (in order) tags.php, category.php or index.php.

이걸 읽어 보지 않아 태그를 클릭하면 index 포멧으로 출력되어 수정한다고 엄한 짓거리를 한참했다. keywords.php 파일을 만들어 올렸고 출력하는 포스트의 형태는 archives와 같이 excerpt로 했다.

This entry was posted in 블로그 and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

You must be logged in to post a comment.