261 reputation
317
bio website mygemologist.com
location
age 27
visits member for 3 years, 8 months
seen May 27 at 20:15

I'm a small business web designer and marketer. I do a little of everything, and I'm always interested in learning new techniques and technologies.


Jul
8
comment Show a widget as a sidebar fallback
Just tested, and the fallback isn't showing for me. I probably should have been more clear about what I meant by "empty." I updated the question to hopefully clarify things.
Jul
8
revised Show a widget as a sidebar fallback
Added an idea for a possible solution
Jul
8
comment Show a widget as a sidebar fallback
This is a nice idea, but I think it will run into the same problem that Wyck's answer does. Even if the widgets output nothing, this function will return false and the fallback widget won't be shown. I haven't tested it yet, but I'm pretty sure that empty( $_wp_sidebars_widgets[ $index ] ) is always going to evaluate as true when we have widgets assigned to a sidebar (whether they output content or not).
Jul
8
comment Show a widget as a sidebar fallback
The fallback sidebar is an interesting idea; I hadn't thought of that. I would rather use is_active_sidebar() though, but whenever I call that inside of a Widget Logic function I get a "Connection Reset" error from my browser. I get the feeling that it's causing an infinite loop somehow, but I'm not sure how. Any ideas on how to mitigate that?
Jul
8
comment Show a widget as a sidebar fallback
This seems to return true whether the sidebar is empty or not. It could be because WordPress thinks widgets have been displayed even if Widget Logic hides them?
Jul
8
asked Show a widget as a sidebar fallback
Jul
2
awarded  Popular Question
May
29
revised When Uploading JPEGs, Does WordPress Compress the Original Image?
Fixed typo in title
May
28
awarded  Popular Question
May
17
revised Advise on Templates for Custom Queries
added update question on feeds
May
12
comment Advise on Templates for Custom Queries
That's interesting. I didn't realize that was a standard practice. The other problem I see is RSS feeds. They will be empty since they are generated from the main query. Will I have to write my own RSS template as well?
May
12
asked Advise on Templates for Custom Queries
May
2
answered GET the excerpt by ID
Apr
30
comment Add a menu item to Wordpress 3.5 Media Manager
+1, just wanted to say thanks for some very impressive work. You saved me a lot of time today.
Apr
22
revised Asynchronous Javascript Loaders
Significantly simplified how the plugin operates based on a better understanding of WP dependencies.
Mar
27
answered WP function/filter for modifying http headers?
Feb
13
awarded  Teacher
Dec
4
awarded  Popular Question
Oct
27
awarded  Announcer
Jun
29
revised Help Structuring Query for Archive Pages
Added another update with some additional concerns.