Today I’m going to show you the plugin ASSIGN WIDGETS that has just been released in the WordPress repository with which you will be able to assign widgets conditionally, ie, place widgets only in posts, in categories, in a particular category, on a particular page and a lot of options more you’ll see.
This plugin doesn’t need any configuration, just install it and you will notice that when you add a new widget, you will find a new tab where you can configure the options and choose the pages where the widgets will be displayed.
In the first option we can choose whether to hide the widgets or display them on the pages that we will choose below. Just below we will be able to choose the page types where to show the widgets or hide them. We will be able to show or hide them in entries, pages, categories and a lot of other options. We can even search for a specific entry or page.
We can add as many pages as we want, simply use the search engine, select the page and add it, look for another one, select it and add it and they will be added to the list.
ADD A NEW WIDGET AREA
Also this plugin gives us the option to create a new widget area.
The only thing we have to do is to give it a name and create it and as a result it will give us the name to insert in a function provided by the plugin.
The next step is to replace the name of our new widget area with the name of the following function, and place it in the template where you want it to be displayed.
VIDEOTUTORIAL ASSIGN WIDGETS:
And that’s it, as you can see it is a very simple plugin to use and has quite a lot of potential. Also note that if you add plugins that insert other custom post types, you can also assign widgets to those pages.
I don’t think you will have any problem since the plugin is quite simple to use, even so if you have any questions, suggestions or just want to tell me something you can leave me an e-mail through the contact form or you can also leave a comment in this post and I will answer you as soon as possible.