Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-09-21, 05:45 AM   #1
johnnybg
I want to set the record straight - I thought the cop was a prostitute
 
johnnybg's Avatar
 
Join Date: May 2004
Location: Serbia & Montenegro
Posts: 292
Send a message via ICQ to johnnybg
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?
__________________
Teen Porn Site Blog
Johnny's Porn
Nesa (aka johnnybg)
johnnybg is offline   Reply With Quote
Old 2006-09-22, 10:03 PM   #2
Dev~>
Banned
 
Join Date: Mar 2006
Location: Uaregay
Posts: 11
Send a message via ICQ to Dev~>
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..
Dev~> is offline   Reply With Quote
Old 2006-09-23, 06:52 AM   #3
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
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.
jayeff is offline   Reply With Quote
Old 2006-09-25, 04:52 AM   #4
johnnybg
I want to set the record straight - I thought the cop was a prostitute
 
johnnybg's Avatar
 
Join Date: May 2004
Location: Serbia & Montenegro
Posts: 292
Send a message via ICQ to johnnybg
thanks for the tips guys!
__________________
Teen Porn Site Blog
Johnny's Porn
Nesa (aka johnnybg)
johnnybg is offline   Reply With Quote
Old 2006-10-11, 10:24 PM   #5
Solid Bob
Rock stars ... is there anything they don't know?
 
Join Date: Apr 2006
Posts: 11
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!
__________________


Free Webcam Site
Solid Bob is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:27 PM.


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