Skip Navigation

[Resolved] Filtering a checkbox

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by bryanC-2 5 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1382607

I thought this would be pretty simple, but it doesn't seem to work for me. I'm putting together a movie theatre website. If you click the tab "Upcoming Movies" at this URL of hidden link, you see all movies that are more than 30 days away from showing. My client wants me to add an option for movies that don't have a date set yet and add TBD for the date.

To do this, I added one checkbox custom field called "Movie to be Determined" hidden link

hidden link

I thought adding a filter to the existing view with the 30 future date would appear fine with a field relationship of "or" but I can't get anything the TBA movie to appear.

I can't seem to filter a movie with no dates and the checkmark checked.

hidden link

Do you see what I might be doing wrong?

Is there any documentation that you are following?

I've gone through other posts and tried variations, with no luck.

What is the link to your site?
Development site. hidden link

Thanks
Bryan

#1382919

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that you already have existing entries available with your post type. I still would like to clear the things here in order to have correct information and then I can guide you in the right direction.

you created a checkbox custom field "Movie to be Determined" and you want to display the only post where "Movie to be Determined" is checked or unchecked?

Is it possible to send me access details and what view you are using to display your content with what is your expected output?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1384047

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - You need to create another view to query the TBD movie because the existing view, you are using is set to order by the Date Movie begins and value is not set for that custom field.

The simple solution is, I've created the following view that query the TBD movies:
=> hidden link

And I've added on draft page - where I've added the above view:
=> hidden link

As you can see, I can see the correct results. You should format the output as required within the view's Loop editor and add the view where you want to display the TBD movies.

#1386535

My issue is resolved now. Thank you!