I noticed that when I submit a post from the tdo form it always includes the uncategorized category as one of the selected categories.
I have a list of 7 categories. The user can select one or more of these categories, but I eliminated the uncategorized category as an option (so the user can not see or selected this one).
I guess the default category is uncategorized and gets added on even if another category is selected.
Is there a way to eliminated this when a form is submitted?
thanks
while it would be nice if tdo forms could eliminate the uncategorized category from being added to each submitted post I found another way around this.
to eliminate the display of uncategorized on posts, etc. I found the folowing solution in the WP forums.
In the page.php, index.php, single.php etc. files of your theme change the following:
to:
cat_name != 'Uncategorized')
{echo 'term_id ) . '" title="'
. sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.' '; } } ?>
note: the href in the above code should be a href, I could not get it to display correctly in the preview of this post. So please make sure you modify the code accordingly if you plan to use it.
this will eliminate the display of uncategorized(although the actual posts will still have the uncategorized category attached).
But it addresses the need to have the users not see uncategorized on every post.
apparently the post above does not display the code correctly
the solution I provided can be found on the WP forum pages at
By default a post in TDOMF must have at least one category (unless it’s a page). The ‘default’ category is set in the options for the form: “Default Category”. This is a nice drop down list, you don’t even need to know the id of the category.
Now if you want you’re users to set the category themselves, you’ll, obviously, need to add the category widget to the form. The first category widget on your form (top down) can be set to either add to the categories on the post already (i.e. add the default category as well as the user selected categories) or overwrite them (i.e. drop the default category and use the user selected ones only). So if you want to overwrite the default category, just make sure the option: “Overwrite Default Categories” to is checked.
It’s a simply as that.
Chris
Guest
February 4th, 2009 at 6:40 am
Same here – I can’t see anywhere to disable it though – anyone else?
Permalink | Quote