Hi there,
I am having trouble getting the right functionality out of the Conditionals set on a Looper Consumer element.
I have a Layout set up for Categories, which I then want to separate into two Content Types (which are set by a content_type
taxonomy). I have set up a grid element where the Cell is the Looper Consumer. This same Cell also has a Conditional set up on it as shown in the screenshot below, to (in theory) only get rendered when the current post being consumed has the term ‘Video’, which is in the content_type
taxonomy.
However, I am seeing that these posts are still showing up, which I have shown by using a development style of:
.content_type-video {
border: 2px solid red;
}
(I have the {{dc:post:classes}}
Dynamic Content on the Cell so that it pulls in classes based on taxonomies etc)
In the screenshot below you can see some posts do not have the red border, which indicates which ones don’t have the ‘Video’ term associated with them, yet are still showing up.
Further to this, the green arrow icon is using the same Conditional on it (an Icon element within the featured image Div element) so that it only shows when the consumed post has the ‘Video’ term, works exactly as expected. The Featured Media Div preset is used elsewhere, hence why the conditional is in place, even though it needn’t be in this situation as in theory there should be no non-video posts showing up. It does however demonstrate that the Conditional in question is working for that inner Icon element, but it is not working to hide the entire Cell, which is the consuming element.
This consuming Cell element is not within a Looper Provider, as it is pulling directly from the main query which is being provided by the Category Archive which this Layout is being used for.
Any help with this would be great – knowing whether it is a bug, or I have done something incorrectly in my setup
Thanks!