alanft
Forum Replies Created
-
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Conditional date tags?http://codex.wordpress.org/Conditional_Tags#A_Date_Page seems to say that it’s only use is to indicate a date-based archive page (like a year, month or day) list of posts is showing.
are you actually after a widget for an individual post dated in a specific range, or are you after a specific date-range in the archive list? cos that can be done, just not with is_date
looks like a couple of functions in there play around with the wpdb object, which holds the info on the posts showing, and also the data used to evaluate the tags like is_home
have you tried the wp_reset_query option in widget logic as described in http://wordpress.org/extend/plugins/widget-logic/faq/ and associated screenshot?
Forum: Plugins
In reply to: [Widget Logic] Widget Logic conflict with PHP Code WidgetCheers. I’ll have to double check but my test was a widget at the top of the sidebar and all seemed well.
Meanwhile does the issue persist in a basic theme (like the wp default)?
Forum: Plugins
In reply to: [Widget Logic] Widget Logic conflict with PHP Code WidgetI’m still not seeing any conflict with otto’s widget on my own basic wordpress install.
i’ve wp 3.0.3, otto’s widget v2.1, my own WL 0.47. i set up a basic widget to show phpinfo() on a specific author page. working ok.
give me steps to repeat a problem and I’ll see what i can do.
Forum: Plugins
In reply to: [Widget Logic] Widget Logic Not Compatible with WP 3.0?I use is_single and is_home ok. not actually used is_page – are you sure you are using as described on
http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page
?
Have you tried to see what happens if you switch to a simple theme?
Forum: Plugins
In reply to: Widget Login Plug-in using 'widget_content' filter and tagsI’m afraid the widget_content filter isn’t as clever as you were hoping for – it just allows you to intercept and manipulate the HTML output by a widget. I don’t think it’s really feasible to do what you want with it.
Try looking for a plugin that provides a widget that shows latest posts with specific tag(s). The query posts widget perhaps
http://justintadlock.com/archives/2009/03/15/query-posts-widget-wordpress-plugin
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Exclude widget from categoryI may have misunderstood. You can stop the widget appearing on a category page, but you can’t stop a category or posts in a category being displayed IN that widget (if the widget displays a list of posts or cats)
Check the other notes section and the link to wp conditional tags for details
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Exclude widget from categorywidget logic can’t do that for you, sorry. your best bet is to look around for a more configurable categories widget
Forum: Plugins
In reply to: [Widget Logic] Widget Logic conflict with PHP Code Widgeti’d have to check this out – the last time anyone mentioned Otto’s PHP widget to me it wasn’t about it not working at all with WL. However I can see that he has been keeping his code up to date – where mine is woefully behind the times.
http://wordpress.org/support/topic/plugin-widget-logic-doesnt-play-well-with-php-code-widget
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] WidgetLogic & wp-geolocationDoesn’t look like it’s possible, sorry. The data that the wp-geolocation plugin fetches sits inside javascript by the look of it, and the PHP code that widget logic executes won’t be able to make use of that.
unless anyone can think of a clever hack?
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] is_active_sidebar() doesn't work* speechless *
well almost.
i’ve sat on my code for far too long (since WP2.1??) happy that it did the job. But you may have hit on a much simpler approach. not only simpler, but less prone to some of the problems caused by themes that play games with bespoke queries that mess up the conditional tags.
I’ll do some testing and if it works out and you have no objection I’ll consider incorporating that approach (and a variation on the code above) in the next beta/release.
(though it would mean rethinking how to do the widget_content filter)
Forum: Plugins
In reply to: Excluding multiple template pages in Widget Logic sidebar pluginwell i looked on the conditional tags page in the codex, at http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template , and the only example given is to test a single given filename.
so the best way to check against a list of templates would be to get the template and do something like:
in_array($template_name, array(‘proj-ed.php’, ‘proj-civil.php’,…))
Now there is a function get_page_template(), but digging around that seems to return the whole PATH, not just the filename. so you could supply the array of paths, or use PHP’s basename function:
in_array(basename(get_page_template()), array(‘proj-ed.php’, ‘proj-civil.php’,…))
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] WidgetLogic for different languages?Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Returnsthis is something i might add to the FAQ actually.
you can workround this without changing the plugin code, by changing your WL to explictly include return and end with a ‘;’ so if your code is
is_page(‘returns’)
change it to
return is_page(‘returns’);
HTH
Forum: Plugins
In reply to: [Widget Logic] [Plugin: Widget Logic] Widgets DisappearedI don’t think WL has any folder specific issues. i assume you’ve deactivated WL and the widgets appear, yes? What happens if you switch to a default theme?