I’ve a customized put up kind known as "papers" and I must create an array with all of the archive hyperlinks per yr that exists. One thing like:
array (
[0]=> 'http://www.instance.com/2021/?post_type=papers'
[1]=> 'http://www.instance.com/2019/?post_type=papers'// trigger there is not any put up in 2020
[2]=> 'http://www.instance.com/2017/?post_type=papers'
)
I do know it is bizarre however I’ll feed a chart js with it.