Munro
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Pagination navigation of Events to show initially from today, but also past link
Started by: Munro
in: Toolset Professional Support
Problem: Right now my set up is simple, with the 10 event paged like regular posts, but I am afraid the client may want a monthly dropdown to select only events from that month or the previous and next to be the "previous month" or "next month" with the month names like a real calendar. Is this possible with Views from an event custom date field? Solution: There are not such kind of built-in features within Views plugin, it needs custom codes. Here are my suggestions: It will be able to pass URL parameter "my-month", value is 2018-03, 2) use Views filter hook "wpv_filter_query" to trigger a PHP function 3) Then use above values to add filter on the custom date field "Event date": Relevant Documentation: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query |
2 | 4 | 6 years, 9 months ago |