I installed a plugin called “Symbiosis” which creates categories automatically copying a user’s username upon them signing up.
Whenever any user creates a post on the site, I am trying to figure out how to assign that category that was already created with the new post.
I want to set WP Default Category to the authors username so that when anyone creates a post it automatically posts under their name. (my users do not have access to default wp-panels)
I know about the dropdown in the settings > writing panel but that’s not what I’m looking for as I cannot customize the slug to a users username.
Is this possible via plugin or programatically somewhere else?
The categories are all already created. I can pull the loggedin users username and echo it but I’m not sure where to put it:
<?php global $current_user; if ( isset($current_user) ) {echo $current_user->user_login;}?>
The default category is stored in the options table under option named
default_category
, so you can do something like this: