WordPress, GPL and Widget Context

Definitely check out the special episode of WordPress Weekly podcast (RSS) hosted by Jeff Chandler where Matt Mullenweg explains why WordPress, GPL and Open Source matters.

I am finally publishing my Widget Context plugin as an α release at the official plugin repository. If you find a bug, or if you know how to fix that bug where the context settings are not saved for widgets that are added fresh to the sidebar on the first ‘Save’, then please leave a comment.

Widget Context Plugin in Action

Here is what this plugin adds at the end of every widget in the Widget Management area:

Widget Context in Action

Widget Context in Action

29 Comments

Aouni 1 year, 2 months ago

Thank you Kaspars, should this replace Widgets Logic?

Kaspars 1 year, 2 months ago

Aouni, I think that Widget Context is a bit easier (and faster) to use than Widget Logic, however there might be situations when you needs custom PHP rules.

Cristi 1 year, 2 months ago

really useful plugin. Any plans to upload it to the Wordpress.org list of plugins?

Jeffro2pt0 1 year, 2 months ago

Not sure if you received my initial bug report but I think widget context does not know the difference between one text widget and another. Based on my testing, for example you can have three different text widgets assigned to three different places but you’ll end up seeing all three in each place.

Raju 1 year, 2 months ago

unique n nice, would love to see it added to wordpress.org as well

combola 1 year, 2 months ago

Superb plugin but when I activate the plugin all my widgets gone.

Kaspars 1 year, 2 months ago

combola, yes — this is currently the default behavior of widgets which don’t have the visibility settings applied. Try configuring them under the Widget Management.

Michael Thompson 1 year, 2 months ago

Hello — I like your widget but I am having difficulty with specific URLS. I am using Wordpress with a static front page called “home”. I am looking to have a different sidebar for my blog vs the other static pages.

When I check the boxes they seem to work fine but when I put in “blog” or “/blog” or “/blog/” nothing happens. I suspect I am using the wrong terminology for the page names. Can you advise?

Thanks!

Michael

Kevin 1 year, 2 months ago

Nice plugin Kaspars!

We developed a similar plugin a few months ago. It is available for FREE download here:
http://tomuse.com/wordpress/widget-locationizer

Brad 1 year, 2 months ago

Kaspar:

Wonderful plugin, much needed. I currently setting using wp 2.7 + atahualpa 3.1.7 as a CMS, and your plugin works perfectly. Thanks!

Sean Daily 1 year ago

I tried to make this work on our WP 2.7.1 blog but some odd behavior occurred. We have a custom sidebar-top area in our template with a widget installed, and it wouldn’t appear even when configured to do so on every page.

Also, in the made sidebar of the template, we were not able to get any widgets to suppress display (for example, on the homepage) even when the appropriate checkbox was checked. We definitely saved changes and cleared the browser cache when testing this.

Kaspars 1 year ago

Sean, the configuration for displaying widget on every page should be the following — display on every page except selected and with no checkboxes selected. Is it the way you have it currently configured?

Do you use a custom static home page or a default one?

Sean Daily 1 year ago

Double-checked the config and it all looks right. We use the default home page, not a custom static.

Ray 1 year ago

About the wildcard functionality…

Say we use a wildcard of “/category/example/*”

If we have a custom permalink structure of “/%postname%/”, does the wildcard still target category posts made in the “example” category?

Kaspars 1 year ago

Ray, no — it’s not that smart. I will try to implement this functionality in one of the next releases. The only problem is that it will add even more input fields to every widget settings, but I guess it would be worth it.

Kaspars 1 year ago

The problem which Sean had was caused by the plugin checking for variable $paged being < 1 to determine if it is the home page that is currently being viewed. It should have been if $paged < 2, and it has been fixed now in 0.34.

Sean Daily 1 year ago

Thanks for the updates Kaspar!

Drew 12 months ago

Hey… I might be going crazy here but when I check “every page except” the results are the exact opposite, ie. the widget is only on that page.

When I check “only on page selected” the widget appears on every other page.

Am I the only one having this problem?

Thanks

Jeffro 12 months ago

No, you certainly are not the only one experiencing this problem. I think you have to save those settings twice in a row for them to actually stick.

Kaspars 12 months ago

Jeffro, thanks for inspiration. I finally fixed it. Grab the latest version from the downloads page.

Kaspars 12 months ago

Drew, I am using this plugin on this blog and I haven’t experienced anything like that before. Could you please check out the latest version of the plugin and let me know if it fixes the problem.

Drew 11 months, 4 weeks ago

Kaspars, Thanks for your update.

The new update however did not fix my problem. I still have the “Appears on every page accept” box ticked and my widget is ONLY showing up on the blog page.

Am I using the correct language by putting

in the text area and ticking “single page”?

Thanks again.

Kaspars 11 months, 4 weeks ago

Am I using the correct language by putting … in the text area and ticking “single page”?

Drew, it looks there is something missing in the description above. Could you please give a detailed description of what you are trying to achieve and what are the widget context settings you have specified.

Drew 11 months, 4 weeks ago

I am trying to get a widget to appear only on the static “blog page”

The widget contex setting I am using are as follows:

*Display only on selected

*Single page

In text area I have put: <blog>

It does not work with those settings.

If I then change the first setting to:

*Display on every page except

then it works, which would be fine but I am unable to get a widget to appear on multiple ‘only’ pages using this method.

Thanks

Kaspars 11 months, 4 weeks ago

Drew, try deselecting ‘Single Page’ option and make the target URL equal to blog if your blog’s URL is domain.com/blog

Rob 11 months ago

Hi, can you please add a feature for this plugin to hide/show a particular widget when a user is logged-in to site and when they are logged-out? This would be extremely useful for membership websites that use Wordpress as a backend. Seems like an easy feature to include that would add tremendous value. Let me know. Thanks!

Kaspars 11 months ago

Rob, that is a really good suggestion. I’ll implement that in the next version.

Jay Carlson 7 months, 3 weeks ago

Jeffro2pt0,

I’m getting the same thing. with multiple text widgets, it just shows them all…

J.

Feedback on other blogs (trackbacks)

Comments closed. Leave me a message »

Es vienmēr tevi mīlēšu, Sirsniņ!