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.

Similar Posts

  • WordPress 3.1 is Out
    The latest, greatest version of WordPress was released yesterday. It comes with a whole lot fixes an ...
  • Configure ALSA for Crystal 4237B
    While having wireless Internet access is very sweet, I don't currently have working sound on my lapt ...
  • Kansas rejects Science
    Kansas education board downplays evolution Risking the kind of nationwide ridicule it faced six year ...
  • Fixing Now-Reading’s Admin Menu
    I like using Now-Reading to track what books I'm currently reading, have read and want to read on my ...
  • Now-Reading Tweaks
    I use Rob Miller's excellent Now-Reading plugin to track all the books I've read and am reading here ...

About Mark McKibben

Mark works as a [REDACTED] for [REDACTED], currently residing in Iowa. CoffeeBear.net is a place for him to blather on about whatever strikes his fancy. He currently spends his "free" time working on a photography project, playing with his cat and attempting to keep his wife happy (not necessarily in that order).

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

Notify me of followup comments via e-mail. You can also subscribe without commenting.