3,974 reputation
1925
bio website patrickjohanneson.com
location Canada
age 42
visits member for 3 years
seen 17 hours ago

writer + webmonkey + judoka + husband

I write SF/F, I work as a webmonkey at a small Canadian university, I teach & referee judo. I'm married and I live in a blue house.


May
20
revised how could I load a different template part by page
wrapped function calls in backticks
May
20
comment how could I load a different template part by page
When you say a conditional tag, do you mean something like these Conditional Tags?
May
14
awarded  Yearling
May
9
reviewed Approve How to fix empty dashboard issue in WordPress?
May
6
comment Block access to wp-admin
Per your answer, did you try moving the ErrorDocument 401 default line to the end of your .htaccess file? I know I've run into situations with my own .htaccess file where the order of the commands is important. (Also, I note that in your answer, the deny from all line occurs before the allow from [x] lines, which may also be relevant.)
May
5
revised Adding add_action function
fixed my own grammar
May
5
answered Adding add_action function
May
5
revised Adding add_action function
Tagged, and cleaned up grammar -- if I've changed the intent of your question, please change it back
Apr
27
comment get_current_blog_id returns 1 in multisite setting
Can you [update your question ](wordpress.stackexchange.com/posts/185111/edit) to include some of the context around your get_current_blog_id() call, please?
Apr
26
comment A search box for all sites - Multisite
You're welcome. (Here I was thinking I'd been distinctly less than helpful. Glad to have pointed you in the right direction, at least.)
Apr
26
comment A search box for all sites - Multisite
Since you got it working, you can post an Answer of your own, detailing what you did to make it work. After a short time (I believe it's 48 hours), you can mark your answer Accepted, which will help others who want to accomplish the same sort of thing.
Apr
26
reviewed Approve how to logout user on browser tab or window closes
Apr
26
reviewed Approve How to correctly include jquery-ui effects on wordpress
Apr
20
comment A search box for all sites - Multisite
What have you tried so far? What exact issue are you running into? Note that Stack Exchange is not a "do my work for me" site; if you need significant development assistance, you might need to hire someone. If you haven't already, you may want to have a look at the WPSE tour.
Apr
16
comment Multisite - change path of current site
Here are some instructions from a couple years ago: paulund.co.uk/wordpress-multisite-nested-paths . I haven't tried this out, and it's not for the faint of heart -- involves changes to your wp-config.php and .htaccess files, to start with. Test extensively before using on a production server.
Apr
4
comment Can't import posts in multisite
I'd double-check the post_max_size and upload_max_filesize constants in php.ini first, and also make sure that the wp-content/uploads folder has permissions that will allow files to be uploaded, before I reinstalled.
Apr
4
comment How To/What triggers a Wordpress auto update?
...reading Configuring Automatic Background Updates, it appears I'm wrong about the minor-version thing.
Apr
4
comment How To/What triggers a Wordpress auto update?
IIRC, auto updates only happen for minor version updates (eg, 4.1 » 4.1.1). For major updates, like the one you're trying to do, you still need to go to the update page. If you want something that you can schedule (eg, with cron or something equivalent), you should look into WP-CLI.
Apr
4
comment A search box for all sites - Multisite
It should be possible. You can use wp_get_sites() to get a list of sites to populate your dropdown, and either use a switch_to_blog()/restore_current_blog() pairing to grab content from the appropriate site, or else wp_redirect() to redirect to the search results page in the relevant site.
Apr
4
comment Can't import posts in multisite
You should be able to import from a WXR file in Multisite the same as in single-site WP. You've double-checked the content of your file?