isopropyl24
Member
Posted 4 years ago #
I realize there are other topics about this, but I would really like to be able to write pages and have them show up at a specific time instead of right away. (just like you can do with posts)
... But (according to the other topics) there isn't a way to do that. But maybe it will be added in the future?
No, I don't think it will ever be added.
Read about Pages - one of the distinctive features is this: they are not part of the chronological stream of the posts. Hence, no need for timestamp.
isopropyl24
Member
Posted 4 years ago #
Yeah, I know; but with the nature of my site, I want to be able to make pages and have them show up (at a later time) without me having to BE there to do it manually.
isopropyl24
Member
Posted 4 years ago #
Actually, forget the timestamp (since apparently it's "not ganna happen" and all...)
Just put in a feature that allows pages to show up at a certain time.
Malaiac
Member
Posted 4 years ago #
Simple solution :
Create a plugin with :
<?php
function timestamp_pages()
{
?>
<fieldset id="posttimestampdiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Timestamp'); ?></h3>
<div class="dbx-content"><?php touch_time(($action == 'edit')); ?></div>
</fieldset>
<?php
}
add_action('dbx_page_sidebar', 'timestamp_pages');
?>
isopropyl24
Member
Posted 4 years ago #
abridged
Member
Posted 4 years ago #
Forgive me for the newbie questions, but I have not found the answers elsewhere...
1.) How do you remove the timestamp for pages?
2.) How do you create a plug-in with Malaiac's code? I have downloaded plug-ins, but never created one and do not know where to begin.
Thanks for breaking it down for a beginner!
isopropyl24
Member
Posted 4 years ago #
1. um... pages don't have timestamps. thats what the plugin is for.
2. copy what Malaiac provided into Notepad. Then in between "<?php" and "function timestamp_pages()" put something like this:
/*
Plugin Name: Page Timestamp
Plugin URI: *leave blank*
Description: Place a timestamp in pages.
Version: 1
Author: *your name*
Author URI: *leave blank*
*/
Save it as "page-timestamp.php" (or anything with ".php" at the end) and you've got the plugin. Upload and activate like normal, and test it out.
That was awesome, thanks Maliac. If anyone else needs a copy of the plugin, you can download it here.