Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Blogs and Blogging (http://www.greenguysboard.com/board/forumdisplay.php?f=8)
-   -   Wordpress Timestamps (http://www.greenguysboard.com/board/showthread.php?t=34648)

johnnybg 2006-09-21 05:45 AM

Wordpress Timestamps
 
I'm just beginning to learn Wordpress these days. I used to use Mambo/Joomla for my paysite reviews project, and I found out that WP is much easier to maintain, so I switched to it.

Unfortunately, WP has uexpected behavior with timestamps, which bothers me a lot since Mambo had it working.

The thing is when I change timestamp of the post and publish it, it appears in my categories list in the sidebar. That's pretty bad, because I expected that this post would appear only on date I've set in timestamp field.

When I click on the category link, scheduled post does not appear in the archive list, which is good, but it still counts in the number of posts in categories list in sidebar.

One workaround that I managed to do is to change this in my sidebar.php

original:


changed:


This prevents Wordpress to display the number of posts in categories list in sidebar.

I need a workaround to prevent categories from appearing in list when they have one scheduled post - because they are empty before scheduled time comes, and clicking on such category gives empty page.

I tried to Google this issue, but had no luck. Any ideas?

Dev~> 2006-09-22 10:03 PM

the solution for me, was delete the categories on sidebar.
http://bangbrossex.com/b/

jayeff 2006-09-23 06:52 AM

It's do-able, but I'm not aware of an existing plugin which can. The reason is that posts are kept in one table and category details in another.

When you are generating a list of posts and want to say to which categories they belong, that's quick: the routine picks up a category ID from the post entry it is already looking at, the category table is indexed on that ID, so extraction of the name of the category is near instant.

To achieve what you want isn't hard, but the existing routine would need to be rewritten. It would also be a slower process, which - considering it wouldn't produce anything useful most of the time - might not not be such a good thing on a busy site.

johnnybg 2006-09-25 04:52 AM

thanks for the tips guys!

Solid Bob 2006-10-11 10:24 PM

It also pings as soon as you save it as postdated which is horrible and will get you banned all over the ping services.

Doh!


All times are GMT -4. The time now is 11:24 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc