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
関連記事
-
-
biosが起動しない。
おとといくらいから、うちのPCが起動しない。OSが起動しないだけじゃなくてBiosが起動しない。ファ
-
-
cakephpでユーザ定義定数を読みだす方法
サイトを作るにあたって、定数を使いたいときがよくあります。 サイト上のある数値に変更があっ
-
-
ホームページ(笑)を作ればモノが売れるという幻想(笑)
まだこんな考えもってる人がいたのかwww もう「ほーむぺーじ」って言うのもやめて欲
-
-
facebookでログイン機能を作成してみた
最近の会員サイトには、facebookでログインする、という機能がよくついてます。 この機能が
-
-
img画像に隙間(空間)ができる件
何度か経験してそのたびにイラッときたので自分用にエントリー。 スタイルシートで下記のように記述
-
-
ec-cubeで欲しい機能
仕事で、ec-cubeを触っている。どこの企業でも同じだと思うが、ec-cubeを使っているとカスタ
-
-
やっぱiphoneはすごかった
いろいろ迷って2台持ちを決意。iphone1台にすると、データ通信量がハンパない
-
-
紛糾!システム構築の巻
システム作る時って、会社の縮図だと思う。いろいろな立場の人の思惑や損得が入り混じり、考えが違うために
-
-
podcastのテスト
podcast配信です! mp3ダウンロード mp4ダウンロード

RSS