wordpress plugin change the taxonomy when you suggest the time
1. at first, download Post Expirator.
2.change code like this,
line72
——————————————————————————
// wp_update_post(array(‘ID’ => $a->post_id, ‘post_status’ => ‘draft’));
// delete_post_meta($a->post_id, ‘expiration-date’);
// update_post_meta($a->post_id, ‘expiration-date’, $a->meta_value, true);
delete_post_meta($a->post_id, ‘expiration-date’);
wp_set_object_terms($a->post_id, ‘after_event’, ‘public_status’);
——————————————————————————
i think impotant is ‘wp_set_object_terms’ function.
more information
http://codex.wordpress.org/Function_Reference/wp_set_object_terms
Google AD
関連記事
-
-
WordPressをインストールしたら最初にやってることまとめ
仕事でWordpress使ってるけど、とりあえずすごく役に立ちました。ありがとうございます。個人的に
-
-
【wordpress】buddypressでの子テーマの作リ方
先日BuddyPressのインストール方法をお伝えしましたが、インストールしたままテーマを変
-
-
WEBディレクター募集します
仕事でWEBディレクターが必要になりました。HTML/CSSコーディング、ディレクション経験あります
-
-
JQueryのsliderでpagination機能を作ってみた
複数ページが存在するWEBサイトによく使われている機能として「ページネーション」があります。
-
-
lolipop(ロリポップ)でTinyTinyRSSを導入
Google reader終了のお知らせは、以前ほど使わなくなったサービスとは言え、かなり自
-
-
stay hungry stay foolish
apple http://www.apple.com/stevejobs/ He die
-
-
Blogger Syntax Highlighter
今さらですが、Blogger移転を機にSyntax Highlighterを入れてみました。こちらの
-
-
zenphotoを入れてみる
これまでの写真データ管理にはGoogleのWEBアルバムを使ってきたが、無料で使えるのは1GBまでだ

RSS