4,733 reputation
1734
bio website mrwweb.com
location Seattle, WA
age 26
visits member for 2 years, 5 months
seen Apr 10 at 18:22

I make WordPress sites for a living, mostly for nonprofits, as MRW Web Design.

I like supporting the WordPress community by offering support here and on the .org Support Forums. I've released plugins include Post Status Menu Items, Feature a Page Widget, and Advanced Custom Fields Repeater and Flexible Content Collapser.


Mar
27
comment What's an efficient way to change the post status of many posts at once?
I don't have time to dig into this right now, but you might look at how the core Bulk Edit tool works. Not that core is perfect... :)
Mar
27
comment Conditional Statement custom post type category
There's also a space in your "is _category." Should be "is_category". And double-check that slug's right. Did you really put "slug-" in your category slug?
Feb
19
comment Make Two Views of Post Type Archive At Two URLs
A well-timed blog post from @MarkJaquith turned me on to the template_include filter which is better-suited for including a new template file. I've updated my code to use that filter and I'd recommend updating the example code too.
Feb
13
comment Make Two Views of Post Type Archive At Two URLs
Aaaaaaaaaaand it's magically working. No idea what changed but I really appreciate your help a ton. Bounty coming your way (it was already) when initial 24 hours is up.
Feb
13
comment Make Two Views of Post Type Archive At Two URLs
I'm starting to wonder if this is a weird XAMPP issue...
Feb
13
comment Make Two Views of Post Type Archive At Two URLs
Added the $ back. Same result. For whatever reason, everything works for me without index.php and not with it. Going to example.com/index.php?post_type=projects redirects straight to that page but without the index.php. I've tried simplifying my permlinks, removing the custom rewrite and with_front on the post type and more. While all those things change the permalinks, they all don't work in the same way. Totally stumped and not sure where to look.
Feb
12
comment Make Two Views of Post Type Archive At Two URLs
Hmmmmmm. The crux of the issue is that $wp_query doesn't get correctly set with permalinks (though it's partly right) and I have no idea why (var_dumps of $wp_query in both situations, and my adapted code).
Feb
12
comment Make Two Views of Post Type Archive At Two URLs
Suuuuuuuuuper close. Tweaked everything and got it working. However, when using the pretty permalink (projects/map) I get 404 headers, no posts, no queried_object, etc. and NOTICE: C:\xampp\htdocs\eworks\wp-includes\post-template.php:29 - Trying to get property of non-object (there's no ID set). When going to ?post_type=project&map=1, I don't get that problem. It seems that WordPress doesn't realize this should be a post type archive still. Not sure how to handle that. I could easily write a custom query in the template but that would leave the underlying issue in place.
Feb
10
comment Make Two Views of Post Type Archive At Two URLs
This looks awesome! Thanks. I'll come back and report on success/failure ASAP. In the mean time, I'm curious why you chose to use the methods on the $wp global rather than the functions get_query_var() and add_query_var()?
Feb
7
comment How to add tags to identify custom post types in archives?
I think adding an example of the final output you want would help us answer.
Feb
6
comment Make Two Views of Post Type Archive At Two URLs
I'm hoping the update dealt with the opinion issue. I'll be happy with any answer. My understanding is that endpoints do not work for post type archives. They're intended for posts within that post type but not the archive itself.
Feb
6
comment Advanced Custom Fields if else issue
see update. I don't think it'll fix your issue, but it is wrong.
Feb
6
comment Advanced Custom Fields if else issue
What do you get with the var_dump() on a field that you think shouldn't output a link?
Feb
4
comment Display Editable Text Above CPT Archive Listings
Here's the relevant code. Has to be public and not "built-in." (A CPT should never be built-in.) Please keep in mind that the current plugin has some severe limitations and I don't think the author is really keeping it up.
Jan
29
comment Display Editable Text Above CPT Archive Listings
As you can see here the filter is specific to the options page. In this case option_page_capability_cptd_descriptions.
Jan
27
comment Display Editable Text Above CPT Archive Listings
@Dakota the problem is actually that the options aren't quite implemented correctly. There is a filter to allow non-admin usage of options. I've implemented in in this branch but that hasn't been integrated into plugin and I'm not sure when/if it will.
Jan
21
comment Make Two Views of Post Type Archive At Two URLs
@Milo I suppose I'm trying to understand if there's a canonical technique for this situation. I thought endpoints were the answer, but that seems to not be the case (maybe?). How could I make the question more specific and less open to opinion-driven answers?
Jan
7
comment Display Editable Text Above CPT Archive Listings
@Dakota The big problem is that the descriptions are only editable by Administrators.
Nov
6
comment Show top-level parent with submenu menu walker
This worked like a charm. Thanks, @birgire!
Nov
4
comment Show top-level parent with submenu menu walker
@ialocin, the code snippet I provide would answer that question. To use that example, I'm looking to add "About Us" to my output.