-
Notifications
You must be signed in to change notification settings - Fork 159
Add categories to pull screen - 2 #1244
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
Add categories to pull screen - 2 #1244
Conversation
faisal-alvi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kirtangajjar thanks for working on this. I tested and found the category filter does not work. Please check the GIF:
When I select test03, 0 posts should return as results, but it still shows the post with the Uncategorised category.
|
@faisal-alvi The issue mentioned in #1244 (review), should be fixed now. In addition to that, I have removed outputting the filters from the bottom, as it is being rendered with the same HTML id attribute, which is an issue. One more thing we need to work on, is we will have to update the taxonomy list based on the supported post-types, I think, instead of just outputting all the taxonomies for all the post-types. I will work on it in this PR. cc: @jeffpaul |
|
@jeffpaul I think we should also not generalize this only for the category, but give an option (maybe a filter) to allow other taxonomies as well, just a thought! What you say? |
|
For example, if the In addition to that, it should respect the remote site's post-type and not the post-type on the current site. |
|
Just adding a note about #1244 (comment), that it's going to be tricky because we will have to generate the taxonomy terms again and again when someone changes the post-type filter. But I think we can get all the terms when creating a post-type filter, so trying it out as of now. |
Making this filterable so folks with custom taxonomies sounds good to me.
Since you're filtering terms from a separate site, we should render those in the taxonomy dropdown. If that term is missing on the current site then it should get added as part of the pull distribution |
|
After thorough testing I found that the I'm creating new PR to generalize the taxonomy terms filter. :) |
|
@jeffpaul Just an update, I started working on generalizing taxonomy filter, and it's going pretty good. I think I will be able to complete it by tomorrow. :) |
|
Created a new PR: #1327 for this, I will continue working on this in that PR. |

Description of the Change
Add categories to the pull screen. This is part 2 of 2 of this issue. This PR filters posts by categories.
Closes #428
How to test the Change
Changelog Entry
Credits
Props @kirtangajjar
Checklist: