Hello everyone! I am in the middle of designing a website for a local magazine. It is a monthly magazine, and one section of their site is an answer bank for the puzzles within the magazine.
The general layout of the content must look like so:
I was thinking of creating a custom post type “Puzzles” but came across some preliminary issues:
​
I want the custom post type to be organized by year, and then month. I am imagining a section on the Dashboard named “Puzzles” and when you click on it, it displays a list of years, with the most recent being the current year. When you click through the year, you are presented with a list of months (I am wondering if it should be all of them at once, or just up to the most recent month).
Then finally when you click on a month, you are presented with a form to fill out all the answers. This form saves the answers to be retrieved by the page in the future.
​
I am having trouble starting this section because I do not know how I could limit a custom post type to act in such a way. Has anyone dealt with a monthly bank like this before? And where I should start?
​
Thank you!
[ad_2]
https://www.wpbeginner.com/wp-themes/how-to-customize-the-display-of-wordpress-archives-in-your-sidebar/
You can limit custom post types with wp_get_archive
wp_get_archives(array(‘post_type’=>’puzzles’, ‘type’=>’yearly’));
‘type’
(string): **Accepts ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’, ‘postbypost’, or ‘alpha’.**