Noriko Sugiura
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Set post expiration only after the post changes to published
Commencé par : Noriko Sugiura in: Toolset Professional Support |
|
2 | 7 | Il y a 4 années et 9 mois | |
Show different post status for different users
Commencé par : Noriko Sugiura
in: Toolset Professional Support
Problem: 1) Use two different views in the same page with two different filters, one filtering for post status = published, and the other one for post status=pending. The problem I'm facing is that when I update a view's filter, it also updates the other view's filter on the same page. 2) Use the save view but dynamically change the post status filtering based on whether the user is admin or not. Problem is that I don't know how to do this. Another solution I guess would be I filter both for Published and Pending status. Then in the view's logic, I put a condition to show the right post status to the right set of users. That should do, though my preference would have been two separate views. Solution: Regarding the option(2), this will require custom code, hooked to the wpv_filter_query filter and modifying the query arguments "post_status" accordingly. The 3rd option is not a good solution. Because the view query will always return all the posts, instead of returning just what is needed. And this can have a performance hit on the view/page. Relevant Documentation: |
|
2 | 3 | Il y a 4 années et 10 mois | |
I have added a checkbox generic field to a CRED create form
Commencé par : Noriko Sugiura in: Chat Support |
|
1 | 2 |
Il y a 4 années et 10 mois
|