36,036 reputation
21632
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 5 months
seen 9 hours ago

I like bicycles and cats.

http://metaflora.net/


14h
comment Foreach inside shortcode not working as planned
possibly related to the use of an invalid character (hyphen) in the taxonomy name? From register_taxonomy: Name should only contain lowercase letters and the underscore character, and not be more than 32 characters long
18h
comment Thumbnails different sizes
get_post_thumbnail_id doesn't accept a size, but wp_get_attachment_image_src does, which is what that parameter is passed to. the difference between your code and the original, is that yours will have height and width attributes on the img tag.
19h
comment How to load post_meta for custom post type via Ajax
2 things - you have to pass the post ID with your AJAX request, there is no $post or $wp_query in the context of your php code, it's an entirely separate request from the one that you're making the AJAX request from. You should also look at the codex page for AJAX in Plugins to learn how to use AJAX in WordPress, you can't call a php file directly and use the WordPress API, since your video.php is loaded outside the context of WordPress environment.
20h
comment What is the earliest hook to modify post content?
as you can see on the add_filter codex page, default priority is 20 if it's not specified. anything lower than 20 should run earlier, but you haven't shown us the code you have tried.
21h
comment What is the earliest hook to modify post content?
what priority does it hook the_content on? you can use the same hook and just change priority to control whether yours runs before or after.
2d
comment add_rewrite_rule on multisite doesn't work
you don't have a non-wp rule, because you're pointing it to index.php. are you certain this works on a single installation? your query string doesn't contain any native query vars, so it can't generate a main query and will 404, the behavior you see is completely expected.
Sep
19
comment Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
I imagine it would be much easier if you were using the AJAX API or an endpoint for this, then you would at least be operating within the context of WordPress.
Sep
18
answered Getting a custom field in the middle of a loop
Sep
16
comment How to change menu URLs to hashes?
how are you generating the list of links, a nav menu?
Sep
11
comment Wordpress running on rasppi not displaying themes correctly
What does "WP not sending the CSS information" mean? The theme outputs a link to a CSS file and the browser requests that file via http. Is the path not being output, or is the path to the css file incorrect? Does it work correctly if you use one of the core-bundled themes?
Sep
11
comment Automatic updates of plugins and themes outside of wordpress.org
wordpress.stackexchange.com/questions/5220/…
Sep
7
comment Unable to upload specific .zip file type via frontend in WordPress 4.0
well it's obviously failing somewhere if the file isn't uploaded. my point is you need to narrow it down to what step it fails on- does it enter the if(in_array) check? does it pass that test? does it enter the foreach to loop over the files, etc..
Sep
7
comment Unable to upload specific .zip file type via frontend in WordPress 4.0
where does it fail? have you looked at the filetype to see that it matches what's in $appnvid_file_types?
Sep
3
answered wp-query, pull children of parent page
Aug
26
comment Advanced Custom Fields - Relationship post foreach query
$item must be $post, the codex page for setup_postdata() is quite clear on this point.
Aug
26
comment Cannot pull up posts of category on category page!
the docs don't note an exception, because there is none. you likely have some errant code causing a conflict. var_dump($my_query) and inspect query vars to see if they are what you expect.
Aug
25
awarded  Enlightened
Aug
25
awarded  Nice Answer
Aug
24
answered How to enqueue default scripts with dependency?
Aug
23
awarded  Revival