Display a view with entries on a specific date using code

By: Naomi Spirit | Asked: 11/23/2023
ForumsCategory: How-toDisplay a view with entries on a specific date using code
Naomi SpiritNaomi Spirit asked 11 months ago
I want to use the view on several pages, each page would display entries from a different date.   I want to add it as code as opposed to the UI. How do I go about this? Is there an example somewhere of filtering the view programmatically?
Question Tags:
1 Answers
Rob LeVineRob LeVine answered 11 months ago
I would think that you can solve it by using the view filter, filter on the date and set up the value of date to compare to be a shortcode (search for the section "How to Create Your Own Custom Shortcode in WordPress").

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right