워드프레스 업데이트

Posted by zingle on October 19, 2007 in etc | Short Link

WordPress update: 2.0.1->2.3

를 하기 위해서 다음의 업그레이드 수행

mysql: 3.x -> 5.0.x

기타 삽질 업그레이드:UTF-8로 mysql encoding language 변경

굳이 할 필요 없었음. 게다가 이놈 때문에 sql dump받은 것들 중 제로 보드 데이터의 인코딩 변경하기 위해서 삽질했음….–;;; (지금 너무 귀찮아서 반말로….)

category tagging 플러그인 사용을 정지.

이번 업그레이드의 단초를 제공한 뉴스가 워드프레스 2.3에서 tagging을 지원한다고 해서였다.
*기존의 category를 이용한 tag들은 manage->category-> convert category to tag 를 이용해서 tag로 변경하였음. (db를 보니 category 테이블이 사라지고, term으로 변경되어있음)

기타 플러그인 업데이트

db-backup
get-recent-comment

wp_tag_cloud / the_tags function 사용 추가

wp_tag_cloud: tag cloud를 만들어 준다. 내가 sidebar.php에 추가한 내용은 아래와 같다. wp-includes/category-template.php에서 해당 function을 확인할수 있다. (파라메터 일일이 적기 귀찮아서 그냥 넘어간다. 왠만하면 그냥 아래처럼 쓰면 만족할수 있을 듯. 필요하면…찾아보자… –V )


if (function_exists ('wp_tag_cloud') ) {
wp_tag_cloud(8,22,'pt', 45, 'flat', 'name', 'ASC', '', '');
}

the_tags: 현재 포스트에 붙어있는 tag를 보여준다.
the_tags('Tags :', ', ')
이런식으로 호출한다.
첫번째 인자는 tag 목록 앞에 붙을 내용이고, 두번째 인자는 각각의 tag를 구분할 때 써주는 delimeter이다.
내가 사용한 방법은 아래와 같다.

index.php (theme 폴더 안에 있는 파일)

Posted in < ? php the_category(', ') ? > |
< ? php the_tags('Tagged as ', ', ') ? > | <--------------이게 추가한 라인
< ? php edit_post_link('Edit','','|'); ? >

single.php

Posted in < ?php the_category(', ') ?> |
< ?php the_tags('Tagged as ', ', ') ?> |
< ?php edit_post_link('Edit','','|'); ?>
< ?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

인코딩하고 이러저러한 문제 때문에 세시간 가량 블로그를 만지작 거렸더니 피곤하다….
귀찮다….TextCube로 갈까 했었는데 당분간은 그냥 워드프레스다. –V

Tags: , ,

120 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2006-2012 zingle.net All rights reserved.
The Shades theme, version 1.7, is a BuyNowShop.com creation.