WordPress Default Category

There’s one thing about WP that has been annoy­ing me a lot and it’s that the default cat­e­gory option doesn’t work (see bug # 0000182 for details). Since this is so annoy­ing to me and the issue appears to be fairly low on the devel­op­ers’ sched­ule; I decided to start inves­ti­gat­ing the issue myself. I found that check what you’ve set the default cat­e­gory to by run­ning this SQL query against your WP database:

SELECT option_value FROM wp_options WHERE option_name='default_category'

For a bit there, I also thought I’d fig­ured out which func­tion should be call­ing this sort of query but after a bit more dig­ging into my options; I real­ized that on my test install, I’d enabled the Advanced edit­ing con­trols. Bah, back to the draw­ing board. Well, back to the draw­ing board tomor­row; I’m get­ting too tired tonight to con­tinue dig­ging through WP’s code to fig­ure out the prob­lem any further.

Oh and for the record, I’m not the only one that is annoyed by this.

Share and Enjoy:
  • del.icio.us
  • Digg
  • StumbleUpon
  • Twitter
  • Reddit
  • Google Bookmarks
  • Facebook
  • MySpace
  • Yahoo! Buzz
  • Print

Similar Posts

About Mark McKibben

Mark is a data analyst for [REDACTED], currently residing in the Midwest. CoffeeBear is a place for him to spout off about whatever catches his fancy. In his spare time, Mark does a bit of webdev & design. To stalk him more effectively, try following him on Twitter.

2 Comments

  1. Carthik says:
    September 1st, 2004 at 3:49 am

    I was the one who reported that bug, based on some­thing I read the forums, once.
    To change/fix that, one would need to
    a) add a new option and a but­ton or some such in the admin inter­face
    OR
    b) hard­code cat 1 as the default.

    Get­ting it to ignore the post by email cat set­ting for the posts that I write using the UI should be good enough to start with, I guess.

    I will get to fix­ing it when I am done with other odd stuff I am work­ing on, but if you wish to con­tinue with find­ing a solu­tions, I hope you will find the fol­low­ing site useful :

    http://www.cenamayo.com/wpxref

  2. Mark says:
    September 1st, 2004 at 7:22 am

    I think Option A would be bet­ter with an interm solu­tion hav­ing the sim­ple edit con­trols obey the “Writ­ing by Email” set­ting would be prefer­able to just get­ting WP to ignore that set­ting for every­thing accept email posts.

Leave a Reply

This work by Mark McKibben is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.