36,509 reputation
21635
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 6 months
seen 9 mins ago

I like bicycles and cats.

http://metaflora.net/


Sep
26
comment Questions on WordPress Codex Concept
@Roberthue - please add that as an answer!
Sep
25
comment Return a single custom post from multiple meta queries
does nc_hidden exist if it's not checked?
Sep
24
comment How to auto-generate numeric permalinks?
see the answer in the link above referencing wp_unique_post_slug filter, or see this answer for an example.
Sep
23
comment Custom plugin route in Wordpress
you can also just use add_rewrite_endpoint, which will generate the rule for you and add the query var in one go. also if you're adding your own rewrite rules, I suggest the add_rewrite_rule function instead of filtering rewrite_rules_array.
Sep
23
comment stuck in $args value insertion how to pass more than one value
possible duplicate of Get multiple roles with get_users
Sep
23
comment get only sub category ID
I think you want the opposite in your if test, if it has a parent it's not a top-level category.
Sep
23
comment Conditional hook
the likely issue is that the code that does the conditional hooking runs way too early. functions.php is loaded before the init hook, which is where most plugins initialize their state, you're probably trying to remove actions which haven't been added yet. there should almost never be code just sitting in functions.php not hooked to an action. refer to the action reference in codex to see the order things are executed.
Sep
23
comment Conditional hook
where do you set $product_found? what action is it all hooked to?
Sep
23
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
Sep
22
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.
Sep
22
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.
Sep
22
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.
Sep
22
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.
Sep
20
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 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?