Noriko Sugiura
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Set post expiration only after the post changes to published
Gestartet von: Noriko Sugiura in: Toolset Professional Support |
|
2 | 7 | vor 4 Jahren, 9 Monaten | |
Show different post status for different users
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
I have added a checkbox generic field to a CRED create form
Gestartet von: Noriko Sugiura in: Chat Support |
|
1 | 2 |
vor 4 Jahren, 10 Monaten
|