42,316 reputation
22651
bio website electrocinematic.com
location San Francisco
age
visits member for 4 years, 4 months
seen 13 hours ago

I like bicycles and cats.

http://electrocinematic.com/


Jul
23
answered How do I switch css class on post
Jul
23
comment Use wp_enqueue_scripts from included php file
see plugins_url in codex, particularly the 2nd argument.
Jul
22
comment Using Customizer value in an external PHP file inside a theme
Don't load theme files directly, see this answer for an alternative.
Jul
22
comment SOLVED - How can you query posts by advance custom field when the value is a serialized array?
You have to do a LIKE meta query if the full value isn't identical to what you're querying for, which it won't be if the data is in a serialized string. Note though that a LIKE query can be pretty slow. Storing data as serialized strings is far from ideal if you need to query against it.
Jul
22
comment Custom Post type and Taxonomy in post URL error
If you want to enforce the correct term, you have to modify the default query to incorporate that data. The answer is similar to the last part of this answer, with taxonomy instead of meta parameters, though I question how necessary this is, considering the unlikely case where some random string is going to end up in the middle of your permalink.
Jul
22
awarded  categories
Jul
21
answered Where and when does WordPress invoke routes
Jul
21
answered Rewrite rules ignored
Jul
21
comment Where and when does WordPress invoke routes
URLs aren't mapped to files, the decision of what template to load is based on what query vars are populated after the query is parsed.
Jul
21
comment No results for taxonomy archive page
that looks fine to me. do you have projects assigned to that taxonomy term?
Jul
21
comment query.php - multiple is_category functions
one is a function, the other is a class method. it's purely for convenience.
Jul
21
answered How Should Custom Functions Be Called For Single Posts?
Jul
21
comment Session variables lost during Ajax calls - Wordpress - Sage Starter Theme
why do you need to store anything in sessions? just pass everything via javascript.
Jul
21
comment No results for taxonomy archive page
Use pre_get_posts to alter the main query. var dump $wp_query->request to see the SQL query being generated.
Jul
18
comment Plugin not saving values when placed in a folder within /wp-content/plugins
Maybe it's a nonce issue?
Jul
18
comment Hide the Wordpress CMS and Integration Plugins from Source
Did you read all of the answers? Both are covered. That said, why do you assume either of those sites is using any plugins?
Jul
17
comment add_action priority and taxonomy used in plugin
without hooks? you're not supposed to do it without hooks. all plugin code should be hooked to run at the appropriate time.
Jul
17
comment add_action priority and taxonomy used in plugin
yes, but why do you need to get them before init?
Jul
17
comment add_action priority and taxonomy used in plugin
why does your code have to run before init when the taxonomy is registered?
Jul
17
answered Custom 404 error does not always appear