Passer la navigation

[Résolu] Taxonomy filters in views don’t work with private CPTs

This support ticket is created Il y a 1 year, 4 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 1 voix.

Dernière mise à jour par Matthias Wagner Il y a 1 year, 4 months.

Assisté par: Minesh.

Auteur
Publications
#2795536

I have a CPT called Tasks, used as an internal task management.
Therefore, all these created posts have the post status 'private'.
With that, a view with a a taxonomy filter doesn't work, as no taxonomy items are shown.
(setting all task posts to 'publish' solves the issue, but is no solution for us).

Is there a way to solve this? Thanks.

#2795538

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to add the Query filter for the post status to your view and select "publish" and "private" option and save the Query filter and check if that help you to resolve your issue.

More info:
=> https://toolset.com/course-lesson/filtering-custom-lists-of-posts/#filtering-by-post-status

#2795542

Hi Minesh,

Thanks for your quick reply.
Well, I already tried this with "any", now tried with "publish", "private" (also "private" only), but unfortunately no success.

Any other ideas would be very appreciated 🙂

#2795543

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I need to review how you are displaying the posts and your view's configuraiton.

Can you please share problem URL as well as admin access details.

*** 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.

#2795548

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

As you can see with both ("Projects" and "Task Statuses" taxonomies) none of the term is attached to any post.
=> lien caché
=> lien caché

To overcome this - I've set the "Custom Search" setting to "Let me choose individual settings manually" and further selected the option "Always show all values for inputs":
=> lien caché

Now if you check the problem URL you shared:
=> lien caché

You will notice both ("Projects" and "Task Statuses" taxonomies) is displaying the options.

#2795554

A great work-around! Thank you, Minesh!