Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2 12
Impact
~20k people reached

Dec
6
revised Detect if request is coming from wordpress conditional statement
added 624 characters in body
Dec
6
accepted Detect if request is coming from wordpress conditional statement
Dec
6
comment Detect if request is coming from wordpress conditional statement
Perfect! I linked it to the old index file with require ('/home/index.html');. I'll put the final code in my question for anyone else with this problem.
Dec
6
asked Detect if request is coming from wordpress conditional statement
Dec
5
comment Taxonomies, restrict editing and creation of terms?
I've been struggling with getting my custom roles to accept my taxonomy capabilities. I've scoured the web these past couple days and your explanation was the first that really made sense. Thanks for explaining it so clearly! It feels good to finally fix those pesky bugs :) +1 to you, sir
Dec
4
comment Apply custom role capabilities to administrator (without plugin)
Also, to add capabilities to the custom taxonomy I added 'capability_type' => 'artist_cat' to my taxonomy reg and a new foreach array for the other capability_type
Dec
4
accepted Apply custom role capabilities to administrator (without plugin)
Dec
4
comment Apply custom role capabilities to administrator (without plugin)
Nevermind, the file wasn't updating for some reason! Yes, this works beautifully, thank you so much. For anyone else coming across this, all you need is this code and the single line add_role( 'artists_relations', 'Artist Relations', array( 'post_artists' ) ); to register the role. No capabilities array in register_post_type and add_theme_caps isn't needed at all. Again, Matthew, thank you for such an elegant solution! Best I've seen yet. I did have to add read to the array, though :)
Dec
4
comment Apply custom role capabilities to administrator (without plugin)
Yes, and still no artist tab in the sidebar. Blarg.
Dec
4
comment Apply custom role capabilities to administrator (without plugin)
Also, what do you mean by reset capabilities? What in this code "resets" it?
Dec
4
comment Apply custom role capabilities to administrator (without plugin)
Thanks, I've added the registration. I guess I didn't wholly grasp what the capability_type really meant. I thought if it was post then it would behave like a post. Re-reading the codex just makes me more confused :( Unfortunately, though, making that change didn't cause it to show up in admin view.
Dec
4
revised Apply custom role capabilities to administrator (without plugin)
added 1582 characters in body
Dec
4
asked Apply custom role capabilities to administrator (without plugin)
Nov
28
asked using rewrites to secure login page
Nov
27
revised How can i move search results onto a specific page?
added 14 characters in body
Nov
26
answered How can i move search results onto a specific page?
Nov
20
accepted Custom post types not using archive structure
Nov
15
answered Custom post types not using archive structure
Nov
14
comment Listing custom post types on archive page with array
I took your advice to solve a larger issue of the wordpress template hierarchy not working at all. It was using page.php template to display custom post type archive, but when I deleted all pages it would use nothing at all. I got it working in the sandbox so it's a conflict somewhere else. +1's to you for suggesting that... I may have banged my head a lot longer before doing that.
Nov
14
accepted Listing custom post types on archive page with array