-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the user to set a default category for posts created by the application #28
Comments
I think that a filter would work well for this. Not sure everyone will want it. Will have thoughts |
There's no harm in showing the dropdown if the default is the Wordpress default right? Won't all new posts go into the wordpress default category without this setting enabled? |
One more use case: default post for Indiepaper.io would be the bookmark post-kind. Or perhaps something more customized such as 'to-read' - I guess the key is for the approval process to query WordPress and see not only the default post types but also post-kinds, if enabled. |
Adding another use case: Teacup entries could be mapped to a Food category which would map to either the eat or drink post kind in WP. Right now, I use a hashtag in the food context that gets mapped to a tag server-side. |
I fixed the mapping, just haven't released the fix |
A common feature request I hear from people using Wordpress with Micropub apps all the time is they want certain apps posts to appear in certain wordpress categories by default. For example, all posts from OwnYourGram should be added to the "Photos" category, all posts from OwnYourSwarm should be added to the "Checkins" category, but posts from Quill or Micro.blog should be "Uncategorized" or set to "Microblog". With the built-in authorization server, there is a great opportunity to have the wordpress plugin handle this now. It will take coordination with the Micropub plugin as well.
If the
create
scope is requested, then the authorization screen can provide an additional field for the user to select the default category for posts created by that application.When the token is generated, the category ID can be stored in the database along with how it stores the token scope and all the other token info. Then the Micropub plugin can look at the token and if there is a category ID in the token, use that when creating the post.
Saving the value from this select box will be easier once #24 is fixed.
The text was updated successfully, but these errors were encountered: