I apologize in advance if this question seems too basic. But I can't find any resources on Google that helps me to further my research.
- I have a total of 3 unique category landing pages on my site.
- I have a custom side bar that is loaded on every page.
- Within this side bar I have a widget that lists articles based on a specific category I want to filter by.
From this same side-bar, in wp-admin->appearance->widgets, I have to add this widget 3 times to my side bar, so that each instance of this widget is filtering articles from each of my 3 category.
When the site loads, the side-bar will display 3 huge side-bar sections of links. I don't want that...I want my "category A" landing page to display category a articles only. When I go to my "category B" landing page, I want that to only display my category b articles, etc...
What I could do...
But what is the efficient WordPress way in PHP to filter the display of widgets by the category landing page they are on? Is there an advanced guide for me to look over to learn this technique?