Views is a WordPress plugin that lets you display post relationships.
In our user guides, you can find more information on how to display child posts, related posts, brother pages, fields of parents and fields of grandparents.
When you ask for help or report issues, make sure to tell us the type of the relationship you are trying to build and the structure of your data.
Viewing 15 topics - 511 through 525 (of 547 total)
Problem:
How to output nothing from a View if there are no results?
Solution:
It's not necessary to use a conditional shortcode, you can simply remove everything in the wpv-no-items-found section of the View output.
If you have a heading or similar that you want to precede the View results and only show this when there are results to show, you can move the heading inside the View output section, within the wpv-items-found section but outside of the wpv-loop tags (otherwise it would be repeated for every result).
1) setup many-to-many relationship between above two post types
2) In a single "projects" post, you are going to display other related "projects" posts.
Solution:
I suggest you setup a custom taxonomy, for example: "projects-project-category", and register this taxonomy to both post types, it can also setup another many-to-many relationships.
I am looking to understand the direction overall that I should follow to achieve a search that has two filter levels in a parent-child structure, where there are multiple 'parents' each with their own list of children.
Solution:
You might consider post type relationship filters, for example:
I have both views and layout plugins installed, but the layout plugin takes precedent every time I am in the dashboard and I want to make a template or an archive. I wanted to be able to select which plugin to use. for sometimes it is more convenient to use views so I can integrate with my page builder, but sometimes I want to use the functionality of the layout plugin.
Solution:
You can also try to skip the Toolset Dashboard page, create the Views WordPress archive directly by following our document: