更新:Wordpress过期后代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了更新:Wordpress过期后代码相关的知识,希望对你有一定的参考价值。
All you need to do when writing the post, is enter a custom field with the key "expiration" and set the value in the format: "2010/01/01 18:20:00" - this would expire the post at 6.20pm on the 1st January 2010.
***PUT THIS INSIDE THE LOOP, FIRST THING*** <?php //to check against expiration date; $expirationdate = get_post_custom_values('expiration'); $expirestring = '30005050235959'; //MAKE UN-EXPIRING POSTS ALWAYS SHOW UP; } else { } } //else if (( $expirestring > $currentdate ) || (is_archive())) { ?> ***THEN PUT THE FOLLOWING LINE AT THE VERY END OF THE LOOP*** <?php } //end if for expiration; ?>
以上是关于更新:Wordpress过期后代码的主要内容,如果未能解决你的问题,请参考以下文章
为啥我的word更新域后代码依然是代码,没有变成我想要的东西。