开发者

WordPress: widget is always there even if I de-active its plugin

I'm a developer who is new to WordPress, I made my first plugin with simple widget.

I'm using genesis with simple sidebar plugin. my problem is the widget I mad开发者_如何学编程e appears in all my WordPress pages. even if the page's sidebar doesn't have that widget. I checked all sidebars and the widget is not there. I de-active the plugin and the widget is still appears in all WordPress pages. that drives me crazy. please any solution ?

Thanks a lot


If your widget is still appearing on your pages when the plugin is turned off, that's a good sign that you're looking at a cached page, as served by WP Super Cache, for example.

Double-check by looking at the page source. Most caches will include information in comments at the top or bottom of the page to show that the page has been served from a cache. In WP Super Cache's case, for example, you might see lines at the bottom of the page like this:

<!-- Dynamic page generated in 0.293 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-01-20 13:48:56 -->
<!-- super cache -->

If that is the case, the options are:

  • Test your plugin locally, on a test server with caching disabled
  • Turn off your cache
  • Turn on the cache option that disables caching for logged-in users, and test while logged in.

Either way, if you're using a cache, it's best to test a plugin both with and without the cache, as caching might have adverse effect.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜