mopress
Forum Replies Created
-
Forum: Plugins
In reply to: Future posts in single view – help!elegant plugin, thanks.
btw: for the index and archive pages I use the following query, where # is the category for my upcoming calendar listings
'<?php query_posts('cat=#&order=asc&post_status=future,publish'); ?>'Forum: Fixing WordPress
In reply to: Category archive by monthPerhaps in future releases
(1) a category parameter can be added to wp_get_archives? as in <?php wp_get_archives(‘type=cat=3&limit=15’); ?>
(2) or query_archives as in
<?php query_archives(‘cat=15’); wp_get_archives(); ?>(3) what would be really spiffy if possible is to have wp select the most recent from multiple cats if more than one cat were numbered in the above examples
anyway, easy for me to say…
Forum: Fixing WordPress
In reply to: Posting in the past (like 1775)I am also working on an archive project with dates as far back as 1451. I want to use WordPress as my CMS, but I don’t want to hack the source code. Here’s my workaround:
On any given day, there are 60x60x24 = 86,400 seconds. If you pick a day and map your past years onto the available seconds, then you have a lot of dates that you can keep in order.
So I looked at the number of centuries, decades, etc. that I would need, and made out a key that tracks the seconds for Jan. 1, 1970. From midnight to one am is everything before 1500. From 1:00 am to 1::30 am is 1500-1550, etc.
I have a date to archive, 1751. For my purposes, that’s about 10:30 am, Jan. 1, 1970. Result:
http://nvusa.org/wordpress/?m=197001
When WordPress evolves into a more versatile CMS, I’ll change the date stamps. Meanwhile, I’m happy to be here.–gm