Dynamic archive of posts by date
Please note that I have now resolved this issue. For whomever is interested, please find my code below (I’ve included everything to a shortcode to facilitate adding it anywhere I want): function archiveday() { $x=1; do { $result = date(‘l jS F Y’,strtotime(“-$x days”)); $year= date(‘Y’,strtotime(“-$x days”)); $month= date(‘n’,strtotime(“-$x days”)); $day= date(‘j’,strtotime(“-$x days”)); $my_query2 = … Read more