Hey WordPress Development,
Currently, I have to create a list of months based on the date query of custom posts I have for the current year. I am probably not saying this right so hopefully my format example below is some help.
So if I have 30 posts for July and 15 posts for August I want to create two links that read like this...
<a href="/data/?m=Aug">August</a> <a href="/data/?m=Jul">July</a>
I don't think I could use a wp_archives because I need to output this format. Reason being is I'm doing a some ajax functions on the page and it's easier to just use $_GET variable.
Thank you in advance.
Edit I guess a better way of asking is... How do I display the most recent post from each month?