37,583 reputation
21738
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 8 months
seen 2 mins ago

I like bicycles and cats.

http://metaflora.net/


1h
answered How do I place a function in a standalone page?
1h
comment Custom Taxonomy breaking pages permalinks
never flush rules on init! rebuilding rules is an expensive operation, they should only be flushed when they change.
1h
comment How do I make wp_localize_script variables available for child theme?
I've just tested enqueueing, localizing, dequeueing, and re-enqueueing with the same handle and it worked. Add all of the relevant code from both the parent and child themes so we can see what it looks like.
3h
comment How do I make wp_localize_script variables available for child theme?
you can manipulate the order that your enqueue function runs by changing the add_action priority. have you tested what happens if you dequeue the original and enqueue your own with the same handle?
5h
comment Why use %d in php when in function
read the documentation
5h
comment CSS acting differently in and out of Wordpress
unanswerable without seeing both in context.
5h
comment How to get the real address from a url (permalink)
you probably want something like get_queried_object then.
7h
comment Loading different template on different url of same page
Show us the code you used to add the rewrite rule.
7h
comment How to get the real address from a url (permalink)
It would be helpful to explain what exactly you're trying to do rather than ask about what you think the solution to your problem is.
18h
comment Pin a post to the top of a page, other than the home page
Do you mean a sticky post?
22h
revised Get The Post Type A Taxonomy Is Attached To
added 469 characters in body
1d
answered Best action to call add_rewrite_rule
1d
answered Get The Post Type A Taxonomy Is Attached To
1d
comment Why load JS through the CMS framework?
@McJimbo can you cite some examples of these incompatibilities "all over the place" that are related to the enqueue system? In 6 years of developing with WordPress, the only issues I encounter stem from not using the API, or using it incorrectly. What do you suggest would be a better system for managing dependencies and load order between core, theme, and plugin scripts? of course, you are entirely free to not use the API, but I highly doubt you will simplify any aspect of your development in doing so.
1d
comment Using WP_Query To Get Posts Randomly From today
documentation for after says "accepts strtotime()-compatible string", which I believe can parse strings like "today", "tomorrow" "week from thursday", etc..
1d
comment Using WP_Query To Get Posts Randomly From today
if you inspect the output of var_dump($featured) after you run the query, you'll get a better idea of what's going wrong.
1d
comment Why load JS through the CMS framework?
wp_enqueue_script isn't sending javascript through php, it's simply managing the insertion of script tags on the front end.
1d
answered Find custom post type url by author
1d
comment What is the best way to create very custom campaign pages?
if you made campaigns a custom post type, it would be easy to dequeue everything in one fell swoop. logically, if it's not a bunch of template files, it's going to be a bunch of static html pages, so I don't see how that's any different.
2d
comment add_action and remove_action if custom field exists
you might also want to check is_single() along with the meta value, otherwise if you visit an archive page where the first post has a custom breadcrumb, you'll get that post's breadcrumb instead of the archive breadcrumb.