WordPress: Assigning widgets to individual pages

2019-07-02 21:01发布

问题:

Are there any plugins or hacks that allow assigning widgets to individual pages?

EDIT: Using self-hosted (.org) 2.8.4

An example of use would be: when you're editing a page in the admin, you'd ideally have the ability to assign widgets to that specific page. The default WP behavior is more "all or nothing" in that you assign widgets to the global sidebar and that's it... all pages get the exact same set of widgets... no "per page" assignment of widgets.

The Widget Logic plugin essentially achieves the desired result with a backwards approach, but it doesn't seem to work with the Rich Text Widget plugin.

回答1:

There are several good ones. Display Widgets is my favorite. Widget Locationizer is perhaps more robust, but takes longer to manage. You can't go wrong with either one.



回答2:

Finally found the Widget Context plugin which does what I need.



回答3:

I don't know of any plugins that would give this functionality, but you might want to look at page templates here: WP Page Templates

With this route its more of a hack, as you can't use the CMS backend to manage your widgets. You would have to manually cut and paste the code of the widget into your page.



回答4:

How about WP Page Widget:

Select widgets for each page / post / custom post type. For every single page / post / custom post type we can select which widgets to show.

This does it "the right way", i.e. when you edit a page you can choose which widgets to show on that page.