I am having a small issue setting up a list of posts in a sidebar.
Let me try to explain you what I'd like to do!
On my website, I have pages that have the same slug name than the post categories (ex: one of my pages is called artist-1, and I have got a category called artist-1)
I'd like to use this similarity in a specific sidebar for pages, where I would call a list of the 5 latest posts belonging to the category matching the page name slug.
e.g. on the page artist-1, I'd like to show in the sidebar a list of the 5 latest articles belonging to category artist-1.
Of course, I don't want to modify the code every time I add a new category and a new page.
Any idea, somebody?