Skip Navigation

[Resolved] Filter View by category in wp-admin

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a View that displays posts. I would like to display only those posts in a specific subcategory.

Solution: Use the Query Filter panel to add a taxonomy term Query Filter. If the View is built in the Block Editor, you must select the top-level View block. You can use the Block Navigator menu if necessary to select the correct block. Then Query Filter options will appear in the Content Selection block configurations panel. If the View is built in the legacy Views editor, you can expose the Query Filter panel in Screen Options.

Relevant Documentation:
https://toolset.com/course-lesson/creating-a-view/#filter-the-list-of-posts

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by avansisI-2 4 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1852051

I need to create a view that only shows the custom type of an option in a category.

Could you help me?

Thanks

#1852743

I'm not sure I understand. Can you explain in more detail? What do you mean the custom type of an option in a category? Is the View filtered somehow on the front-end? What are the filters? What custom post type do you want to display?

#1852781
Captura-de-pantalla-2020-11-22-a-las-19.44.42.jpg

I have a custom type with different categories, and I need the listing of that custom type to show me the ones of one category only.

I need create a view for only this subcategory

#1852807
block-navigator.png
block-term-filter.png
legacy-term-filter.png

I understand now, thank you. It depends on whether you are using the Block Editor to build this View or the legacy View editor.
In the Block Editor, you must select the top-level View block. You can use the Block Navigation menu at the top of the screen to select the top-level View block (block-navigator.png). Then open the Content Selection section in the Block configuration sidebar. In the Query Filter subsection inside Content Selection, add a Query Filter that filters by taxonomy term. Select the desired term filter here (block-term-filter.png).

If you are using the legacy Views editor to build the View, you must find the Query Filter panel. If it is not visible, click "Screen Options" in the top right corner and activate the Query Filter panel. Then add one Query Filter that filters by the desired taxonomy term (legacy-term-filter.png).

#1852923

Thank you Christian,

Just one more thing, I can set in a view, with the block editor I can set a maximum height , and not a width? so the images are resized

#1853447

I've created a new ticket for your recent question, since it seems like a separate issue.

#1853455

My issue is resolved now. Thank you!