You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for help updating a collection loop from a v2 project to v3.
How it's supposed to work: The loop filters collection entries based on taxonomy term. Matching the slug against a specific term. In the example below the slug is "partnerships", so it should only show the 2 collection entries that are using that term.
The problem: It sort of works - ie. its showing entries, but it's not filtering properly (showing entries that aren't using the term), and it's giving an error (see below).
What's the correct way to write this code block for v3?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for help updating a collection loop from a v2 project to v3.
How it's supposed to work: The loop filters collection entries based on taxonomy term. Matching the slug against a specific term. In the example below the slug is "partnerships", so it should only show the 2 collection entries that are using that term.
The problem: It sort of works - ie. its showing entries, but it's not filtering properly (showing entries that aren't using the term), and it's giving an error (see below).
What's the correct way to write this code block for v3?
Thanks in advance!
Error log:
[2023-04-04 15:59:03] local.DEBUG: Cannot render an array variable as a string: {{ services_type }}
ddev php please support:details
Beta Was this translation helpful? Give feedback.
All reactions