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】buddypressでの子テーマの作リ方
先日BuddyPressのインストール方法をお伝えしましたが、インストールしたままテーマを変
-
-
wordpressのiphone用プラグイン
Wptouchていうプラグインがあったのでいれてみた。感想は、「ん~、まあこんなものか」です。フリー
-
-
ブログ更新情報をTwitterに流す、FeedBurnerの「Socialize機能」
タイトルの通り、ブログの更新情報をTwitterに流す方法。 結論から言うとFeedBurnaer
-
-
ロリポップ+お名前.comで独自ドメイン取得
onamae.com で独自ドメイン取得しました。 そのときのメモ。 1.lollipo
-
-
wordpressからbloggerに引越し
lolipopで使っているロリポプランは、DBが一つしか使用できない。もうちょっと有効に使えないかと
-
-
cakephp2にACLプラグインを入れてみた
cakephpで、ユーザーによって権限やアクセスを変えたりする方法を調べてたら、それ用のプラ
-
-
stay hungry stay foolish
apple http://www.apple.com/stevejobs/ He die
-
-
Gitに挑んだりしてみる
複数で開発するにあたって絶対必要と言ってもいい、バージョン管理ソフト。WEBSVNという選択肢も頭を
-
-
さよなら、SKYPE
MSのSkype買収--相乗効果で狙う顧客基盤拡大 - CNET Japan近所に住んでる仲の良かっ

RSS