Hi, I was wondering if you could help me understand why this bit of code seems to have stopped working for me.
In the exp:channel:entries tag I’ve inserted some conditionals to sort and order the entries depending on the url, and with the code below I want to order by price or year.
Any reason why this would have stopped working?
{if segment_2 == "price" OR segment_2 == "year"}
orderby="{segment_2}"
sort="{segment_3}"
{/if}
{if segment_4 == "price" OR segment_4 == "year"}
orderby="{segment_4}"
sort="{segment_5}"
{/if}Thanks! 😊