Skip to content
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

Open
aaronpk opened this issue Apr 4, 2018 · 5 comments

Comments

@aaronpk
Copy link
Member

aaronpk commented Apr 4, 2018

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.

screenshot 2018-04-04 13 14 34

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.

@dshanske
Copy link
Member

dshanske commented Apr 4, 2018

I think that a filter would work well for this. Not sure everyone will want it. Will have thoughts

@aaronpk
Copy link
Member Author

aaronpk commented Apr 4, 2018

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?

@dixonge
Copy link

dixonge commented Aug 3, 2018

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.

@xavierroy
Copy link

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.

@dshanske
Copy link
Member

dshanske commented Mar 6, 2019

I fixed the mapping, just haven't released the fix

@dshanske dshanske removed this from the Built-In Authorization Server milestone Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants