150 reputation
111
bio website example.com
location Massachusetts
age
visits member for 2 years
seen Aug 8 at 17:31

I live. I do stuff. That's what makes me unique.


Apr
20
comment How to use WP_Query in a CPT achive page?
Thanks, @JohannesPille. I'd certainly vote you up if I had that ability yet.
Apr
20
comment How to use WP_Query in a CPT achive page?
Thanks, Milo! Fixing the typo resolves one mystery, and hooking pre_get_posts fixes my larger problem (I've just posted my function above for future readers). One further question, if you don't mind: you say that I'm altering the parameters of the main query; then why does the function stop working when I require is_main_query() in the conditional? I appreciate your help.
Mar
24
comment How can I disable parent menu item links?
The link wasn't to the plug-in, toscho, but to a simple, 'by-hand' way to replace it in making a non-clickable menu item. Seems to produce the same effect as your code. I'd like to give you credit for your work, but I can only choose yours as the correct answer if you somehow justify its superiority over the simple way.
Mar
24
comment How can I disable parent menu item links?
Thanks for your lengthy reply, toscho. You put a lot of work into it I can see. Actually, the answer in the link I posted says to remove the hash symbol, so there's no hash symbol in the link that appears in the menu: it becomes a link without an href, i.e., no URL, fake or otherwise. Since your solution seems to depend on evacuating the href as well, I wonder how it is better for screen-readers. Is your walker worthwhile?
Mar
24
comment How can I disable parent menu item links?
Actually if you read carefully, that solution says to remove the hash symbol, so there's no hash symbol in the link.
Mar
23
comment How to make custom bulk actions work on the media/upload page?
Thanks! This looks like the solution. I was wondering, though, what is the advantage of if ( ! isset( $_REQUEST['action'] ) ) return; over the lines I have in the code? Is it just length? I ask because $_REQUEST['action'] (for the top pull-down) and $_REQUEST['action2'] (for the bottom pull-down) are separate. And it seems I've got to get the action from whichever has it anyway. Thanks again!
Mar
23
comment How to make custom bulk actions work on the media/upload page?
Wow. Thanks for this extensive reply, Ralf! You're right: it is quite nasty. And unfortunately I won't have the time to update this code with every WP update. But you've really demonstrated virtuosity with WP! Amazing.
Mar
22
comment How to make custom bulk actions work on the media/upload page?
Thanks--great suggestion. I modified the code as suggested and it died when I loaded the media (upload.php) page--this seems appropriate. So we know the hook is working. I'm going to paste my code above and perhaps you can tell me why the global variable isn't coming through correctly.
Mar
22
comment How to make custom bulk actions work on the media/upload page?
Thanks for your reply. It is a BIG chunk of code. Not the neatest. I'll see about pulling out what's relevant, but it's going to take some time.
Jan
11
comment Clearfix Shortcode
@toscho, thanks again for your reply. I suspect it makes a difference that there can and sometimes are multiple ps between imgs.
Jan
9
comment Clearfix Shortcode
Hi, thanks for your replies. The question is the setup for my own answer. Unfortunately as a new user here, I have to wait 8 hours to answer my own question. I've got it all ready, just need to wait the time out.