|
|
|
|
|
|
![]() |
#1 |
I want to set the record straight - I thought the cop was a prostitute
|
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: <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?> changed: <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 0, 1, 1, 1, 0,'','','','','') ?> 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? |
![]() |
![]() |
![]() |
#2 |
Banned
|
the solution for me, was delete the categories on sidebar.
http://bangbrossex.com/b/ Last edited by Dev~>; 2006-09-22 at 10:05 PM.. |
![]() |
![]() |
![]() |
#3 |
Just because I don't care doesn't mean I don't understand!
|
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. |
![]() |
![]() |
![]() |
#4 |
I want to set the record straight - I thought the cop was a prostitute
|
thanks for the tips guys!
|
![]() |
![]() |
![]() |
#5 |
Rock stars ... is there anything they don't know?
|
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! |
![]() |
![]() |
![]() |
|
|