[wp-trac] Re: [WordPress Trac] #4913: Future posts cause term count to increase

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 18 01:16:46 GMT 2007


#4913: Future posts cause term count to increase
---------------------+------------------------------------------------------
 Reporter:  Otto42   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.4      
Component:  General  |      Version:  2.3      
 Severity:  major    |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by MichaelH):

 It seems the only way counts 'work' for future posts is to edit and save
 the post after it is published.

 At 7:15, Write a new post.  Create new tag called 730tag, and add new
 category called 730cat and attach to post. Edit timestamp and set to 7:30
 future time, and finally, click on Publish.

 At 7:20, the post is not yet shown on the blog.  The Tag Cloud widget, and
 the Category widget (with no boxes checked), do not present either the new
 tag or category.  With no Widgets active, but in sidebar.php using
 {{{wp_tag_cloud('')}}} the 730tag is not seen.  Using
 {{{wp_list_categories('hide_empty=0&show_count=1')}}} the 730cat is shown
 with a count of zero (0).  MySQL table wp_term_taxonomy reflects both the
 new tag and the new category, and the count field is zero (0) in both
 cases.

 At 7:30, the post publishes and is visible on the blog.

 At 7:45, the 730tag, using {{{the_tags('Tags: ', ', ', '<br />')}}}, and
 the 730cat, using {{{php the_category(', ')}}}, are shown with the post.

 __Now this is where the problem is__!!  At 7:45, the Tag Cloud widget, and
 the Category widget (with no boxes checked), do not present EITHER the
 730tag or the 730cat.  With no Widgets active, but in sidebar.php using
 {{{wp_tag_cloud('')}}} the 730tag is NOT seen.  Using
 {{{wp_list_categories('hide_empty=0&show_count=1')}}} the 730cat is shown
 with a count of one (1).  MySQL table wp_term_taxonomy still reflects both
 the new tag and the new category, and the count field is STILL zero (0) in
 both cases.

 At 8:00, edit the post, make a change to the content, and save. This
 edit/save seems to set things straight.

 At 8:05, the Tag Cloud widget, and the Category widget (with no boxes
 checked), show both the 730tag or the 730cat.  With no Widgets active but
 using {{{wp_tag_cloud('')}}} the 730tag is SEEN.  Using
 {{{wp_list_categories('hide_empty=0&show_count=1')}}} the 730cat is shown
 with a count of one (1).  MySQL table wp_term_taxonomy the count field for
 the category is NOW one (1), the count for the post_tag record is STILL
 zero (0).

 Thanks to sspelta on http://wordpress.org/support/topic/139234 for
 pointing this out.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4913#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list