Filter and Hooks

SQL Query to get the archive / year by post type

For listing the published year of the particular post type, we can use the SQL as presented below.

Replace the ‘post_type’ with your own post type.

Hits: 10

Standard