The Dynamic Archives widget is designed to dynamically retrieve and display content based on the query of the current archive or category in which it is located
The Dynamic Archives widget uses the Dynamic Posts feature, so you can refer to that feature.