Skip Navigation

[Resolved] Custom view listing only a single post only if content is available

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 voice and has 0 replies.

>
Author
Posts
#2702300

Dan
Screenshot 2024-06-12 at 5.19.13 PM.png

Hi there,

I need your assistance pointing me in the right direction here.

I have to create a new view to display one CTP but only if a CPF has an item, in this case a file uploaded.

We have several CPTs already published for future dates, so filtering simply by the last item will display an empty record, as there's nothing published yet.

If you look at the capture of another view displaying all records per year, we basically need a new view to display only the record shown in green "June 4, 2024", as that is the latest one with an Agenda CPF filled in.

Query filtering doesn't seem to work in this scenario.

Hope you can assist me here.

Thanks,

Dan

#2702308

Dan

Please ignore this, as I have found a solution on a similar support ticket I made almost 3 years ago.

But do appreciate your support.

Cheers,

Dan