Archive Dropdown with Year-Based Filtering

Hello,

I would like to add an archive dropdown that allows users to filter content by year. These are not custom posts; the page simply contains an embedded URL.

Currently, we only have content for one year. However, we would like to implement a dropdown that behaves similarly to this one: https://www.snpnyc.org/press/ except that it would display a different embedded URL for each selected year.

Here is the page I am referencing: https://www.snpnyc.org/data/
How can I implement this?

Thank you!

Hello @Jennine,

Thanks for writing in! I can see that the page contains information coming from an iFrame.
image

Be advised that you cannot control the elements inside an iFrame. You would need to modified the file if you have access to it, unless otherwise the iFrame source provide an option to filter the displayed data.

Best Regards.

I just want to add an archive dropdown by year that is outside of the iframe. allowing users to filter the iframes or embedded URLs based on the selected year.