Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Widgets: Global only?
    Thread Starter clintonium

    (@clintonium)

    Well, after several days of hearing nothing but crickets here, I rolled up my sleeves and hacked out my own workaround.

    My objective was pretty simple: I wanted one certain widget to appear on the home page only — nowhere else. So I looked through the widget code, found the function which was the real workhorse of the thing (that is, not the control panel functions, etc.), and added this code right at the beginning:

    if ( !is_home() )
         return;

    Works like a charm.

    I hope this post will help someone else trying to do the same thing.

Viewing 1 replies (of 1 total)