z720 / wp-adc

Default category by author
0 stars 0 forks source link

Re Author Default Category #1

Open steeleweed opened 11 years ago

steeleweed commented 11 years ago

I have category 'AuthorX; with a Parent category 'Diaries'. User 'AuthorX' is set up with default category of 'AuthorX.

Default post category is 'Diaries' but the plugin over-rides that default ant posts appear in category 'AuthorX', which was not unexpected.

I would like to tweak the plugin to turn on both category 'Diaries' and 'AuthorX', Basically, include the Parent category if there is one.

Reason: My FP is set to exclude category 'Diaries', so posts would only show if reader elects the 'Diaries' category (or the AuthorX category). This lets writers post without cluttering my FP and readers see author-specific posts by selecting category of their favorite blogger. When I want to promote a post to FP,, I simply turn off the 'Diaries' category and the post will now show on my FP as caategory 'AuthorX'.

I've been programming for 50 years, multiple systems, multiple languages, but PHP is not one of them. I might be able to figure it out but thought you could certainly do it better, faster and safer.

Thanks

z720 commented 11 years ago

Maybe you should tweak your FP to exclude any post from the "Diaries" category and its children. How do you exclude the categories from your front page? Which plugin do you use? Why don't you use the permlink information linked to the auhtor instead of "duplicating" the author as a category?

Unfortunately this plugin was design to assign a category for an author instead of the global default category.

I don't have much time to do such a modification but any path is welcomed. If you are able to add 1 option page to activate the new option, you just need retrieve it in the user_default_category method and add the original_value to the return on line 39: http://github.com/z720/wp-adc/blob/2074be961ff9d4c5e45ad4cf4a0a6947a71867e1/wp-adc.php#L39