emkr
Follow
Pinned Loading
-
-
WordPress - Pulls blog posts from da...
WordPress - Pulls blog posts from database by year and month. Then displays it as an unordered list, with the year as the parent ul, and the month as the children. 1<?php
23$results = $wpdb->get_results("
4SELECT p.ID, YEAR(p.post_date) as year, MONTHNAME(p.post_date) as monthname, MONTH(p.post_date) as month
5FROM wp_posts p
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.