Nothing displaying and can't see anything in the error_log.txt
In the Layout, there is a View and I removed [wpv-layout-meta-html] in the Filter and Loop Output Integration Editor section and it then works. But other than that I can't see what the issue is.
I have a staging site which I can give you login credentials for, in a private message - you can do anything in here re troubleshooting and I can send you a link to the offending Layout\View.
You are using Layouts, and the working page you linked to uses a layout "Layout for events page" and the non-working page you linked to uses a layout "Listing page".
They are child layouts, but the parent layout ("Parent") doesn't contain anything apart from the child cell. No header, no footer. And they are not in the child layouts.
So I don't see where your footers are coming from to identify why one is behaving differently than another.
Is the purpose of that code just to add custom ordering for view id = 270? Yes.
You want to order by wpcf-featured-label then menu_order then post_modified, is that right? Yes, spot on.
I'm not sure why you are also using the posts_orderby filter. Me neither! Coding is not my forte, but it worked (before I realised then that there was the footer issue lol).
If I have the above correct let me know and I can help you redraft the code. Thank you, thank you, thank you. Much appreciated.
Think when I first created the code, there wasn't an option in the view to select a secondary sorting option... I wouldn't have got there without your help with the new code though.
Thank you again.
This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.