Freaky Trigger’s WordPress Setup

Widget Logic

FT had a complex sidebar, but I decided to ‘widgetise’ it when Steve updated the theme in early 2008. To keep some of the special widgets appearing only when needed, I wrote a plugin to extend the functionality of widgets. Widget Logic allows widgets to appear or not depending on standard WP conditional tags, such as is_home() and is_single() and so on.

If you want to contact me about it you should address yourself to the WordPress org directory and perhaps post on the forum there. Or you can leave a comment here, below. PLEASE READ THE FAQ AND OTHER NOTES in the WordPress plugin directory first though.

If you find Widget Logic useful to you, then you could consider a small donation to Cancer Research UK – click ‘Donate’ on the widget over to the right there –>

VIDEO TUTORIAL! Popup or view on YouTube a screencast by Daryl Lozupone. Thanks to him.

Podcast Channels

Podcast Channels is a plugin that augments WP’s RSS feed with some extra elements, mostly in the ‘itunes’ namespace. It works with existing features of WP (auto-enclosures and the media library) to make a simple way to podcast, and allows different metadata in different RSS feeds – you can have as many channels as there are categories, tags, even blog authors.

Like a lot of people I found PodPress increasingly frustrating to use around WP2.6. I still see lots of people using it, but I found it was interfering with too many aspects of WP – wysiwyg editing, the media library, and so on. But there were only two things it did that I liked – show download stats, and allow multiple podcasts on a blog with their own rss and iTunes metadata. So i wrote a couple of plugins to target just those functions.

(I may release the stats plugin some day, but it’s nothing special, a bit clunky, and I really don’t want to support it.)

Freaky Trigger Theme

This was designed by Steve Mannion @ base58.com

Plugins FT uses

wow, look at all of them. FT salutes you


in • 124,661 views

Comments All, 1–25, 26–50, 51–75, 76–100, 101–125, 126–150, 151–175, 176–200, 201–225, 226–250, 251–275, 276–300, 301–325, 326–350, 351–375, 376–400, 401–425, 426–469.

  1. Sebastian on 20 February 2011 #

    Hi, I want a widget to show up on a specific page. So i wrote is_page(‘About’). But it still shows up on every page. What am I missing?

    Thanks!

  2. Sebastian on 21 February 2011 #

    I found something about wp_head(), that it would be necessary in the header of the theme. All true, i added it to the code, just before the /head-tag, and it all works fine now!

    Awesome widget, thanks!

  3. kyko Garcia on 23 February 2011 #

    erro:
    Fatal error: Cannot redeclare wl_charity() (previously declared in /home/travesse/public_html/wp-content/themes/columbia/functions/plugins/widget-logic/widget_logic.php:15) in /home/travesse/public_html/wp-content/plugins/widget-logic/widget_logic.php on line 19

  4. admin on 23 February 2011 #

    I can’t say for sure, but your error indicates that your active theme ‘columbia’ appears to have bundled widget logic inside it – so activating WL separately is redundant and bound to cause conflicts.

    must see about that bundling…

  5. lisa on 2 March 2011 #

    I would like posts that are in_category(‘x’) to show up on one specific page: is_page(‘y’). So in the Recent Posts widget I have entered widget logic that says: is_page(‘y’) && in_category(‘x’). And the widget does not show up. There is a post in that category. When I remove && in_category(‘x’) and only have is_page(‘y’), then the widget shows up only on that page and showing all recent posts. in_category(‘x’) by itself does not show any recent posts.

    I must be missing something really simple, but cannot see it. I’d appreciate any direction.

    Love the plugin!

  6. Alan on 3 March 2011 #

    WL is not able to filter the content of Recent Posts for you – that’s the basic misunderstanding. it is just able to show a widget or not depending on the logic you give it.

    is_page(‘y’) && in_category(‘x’)

    is not going to show anywhere because it will only show when you are showing page Y and a post in category X – which can’t be true at the same time. (at least i can’t think of a way)

  7. Erwin Odendaal on 29 March 2011 #

    With debugging on I get the error:
    Notice: Undefined index: callback_wl_redirect in
    “wordpress/wp-content/plugins/widget-logic/widget_logic.php on line 137″
    No matter what theme I use

  8. You Daddy on 4 April 2011 #

    Upgrade you lazy mother fucker!

  9. Jason on 15 April 2011 #

    I am looking to find a way to possibly use your plugin to help me with pages I have missed. I have used your plugin on a lot of pages, but for all the pages I havent used it on, I wanted to use a widget to post something if that makes sense. Basically I want to know if there is a way to say “every page that doesnt have something in the sidebar, put this in there”. Is this possible?

  10. nbawoman on 12 May 2011 #

    This plugin is working except for the page with the articles. I’ve made static the home page and the page with the articles (in the admin/reading).
    I can’t show a widget only for the page with the articles. I’ve tried with the id, the name … .
    Have you any idea please ? Thanks a lot

  11. Buck on 4 June 2011 #

    Perhaps I have my head firmly planted where the sun don’t shine, but for the life of me I can’t get the Widget Logic plugin to show up on my site. I’ve trashed it and reloaded it. It shows up in my list of plugins as active. But nowhere does it appear in the dashboard or in plugins to drag and drop to a sidebar widget. I’m using the Platform Theme, but from what i can tell others with that them are using Widget Logic. Am I missing something in the way to access the plugin for use?

  12. Willy on 4 June 2011 #

    Hello, I try use the “Relocate Upload” and is not compatible with current WordPress Version. Will you release update for this plugin?

    Thanks

    Willy

  13. Buck on 8 June 2011 #

    Figured it out. The widget appears when you post the link itself, but I had another widget blocking it. Now I not only got it up and running correctly, I find it to be a dynomite widget for mixing up affiliate ads on my site. Check it out at http://www.endzonestore.com.

  14. linzinz on 22 June 2011 #

    I have content in the primary widget showing on my home page and have used widget logic to show secondary widget content on other pages and not on the home page. However a part of the secondary widget is showing on the home page. I have used css to style both widgets.
    Do you know what could be happening here?

  15. Dede on 28 June 2011 #

    Thanks, widget logic is simple used by all the people

  16. the_owl on 19 July 2011 #

    Hello. Im using Widget Logic and the TEXT widget to load images in my sidebar. I am basing the widget loading off of categories:

    in_category( array( ‘lofts-and-multi-family’,'retail’,'office’ ) )

    The issue is, some posts contain more than one category, like ‘retail’ and ‘office’ for navigation. Since it has multiple categories, widget logic is loading multiple TEXT widgets on the page. How can tell Widget Logic to only load one (the first category would be best).
    thanks for your help

  17. local business listing on 21 July 2011 #

    Wow, pretty cool plugins you have there, so far I have only 5 plugins on your list that are installed in my WP blog, I think I’m gonna explore the rest of your list and see how it works, thanks a lot for this.

  18. Moogle Stiltzkin on 24 July 2011 #

    Widget logic made an ugly white bar appear on my site.

    When scrolling it’s particularly noticeable.

  19. Chad on 25 August 2011 #

    I’ve had your plugin installed for over a year. I have not added or deleted any plugins. All I did was updated to wp 3.2.1 and now I am getting this error:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ‘)’ in /home/ckwebsys/public_html/wp-content/plugins/widget-logic/widget_logic.php(161) : eval()’d code on line 1

    website is http://www.ckwebsystems.com

    this is what is on line 157 – 161

    // before we execute the condtional code, perhaps we want to wp_reset_query…
    if ( !empty( $wl_options['widget_logic-options-wp_reset_query'] ) && ( $wl_options['widget_logic-options-wp_reset_query'] == ‘checked’ ) && empty( $wp_reset_query_is_done ) )
    { wp_reset_query(); $wp_reset_query_is_done=true;}

    $wl_value=(eval($wl_value) && is_callable($callback));

  20. admin on 26 August 2011 #

    it’s the eval’ing of your widget logic that’s throwing the error – perhaps a missing end bracket? definitely worth a look if you’ve changed the widget logic recently

  21. Burton on 14 September 2011 #

    This excellent website rocks !. I regularly discovered something new & unique listed here. I appreciate you for that data.

  22. Karlene Bellize on 16 September 2011 #

    Great website. The posts are good and informative.

  23. Ricardo Elsewhere on 30 September 2011 #

    This plug-in is a godsend.I’m going to your donation link now!

  24. marv on 1 October 2011 #

    newbie. i installed the widget to make sidebars not appear..
    how do i so that?where do i go?

  25. Sheya on 4 October 2011 #

    Hi
    Thanks for the great plugin. However I have a question. I’m trying to put up a widget using conditional tags in a theme where I use custom post types. For some reason it doesn’t seem to work. I tried multiple combinations

    Usually for category 33 I would use is_category(’33′). I tried is_video_category(’33′) (which is the custom post template) but that brings back a fatal error so it’s not that. Any ideas?

    Thank you

Back up to post. More comments: All, 1–25, 26–50, 51–75, 76–100, 101–125, 126–150, 151–175, 176–200, 201–225, 226–250, 251–275, 276–300, 301–325, 326–350, 351–375, 376–400, 401–425, 426–469.

Add your comment

(Register first to guarantee your comments don't get marked as spam)