35,651 reputation
21530
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 4 months
seen 17 hours ago

I like bicycles and cats.

http://metaflora.net/


1d
comment strip_tag not working in header.php
Are you familiar with the concept of variable scope in PHP?
1d
comment Where are wordpress custom types stored?
@BobJones the question mentions the wp_posts table, so it seems pretty clear they know where the post data is stored. but if you have a different interpretation of the question, then perhaps you should add your own answer.
Aug
16
comment How to have multiple URLs working on the same wordpress site
why not just forward one domain to the other if it's the same site? that way you won't get penalized by search engines for having duplicate content, which is probably the opposite of what you're trying to achieve.
Aug
15
comment Redirect if not logged in?
HTTP_HOST typically doesn't contain http://, do some debugging to figure out what you're actually trying to match.
Aug
15
comment Custom taxonomy from custom post type
category is a built in taxonomy, not a custom taxonomy. do you have multiple taxonomies, or are you just using the built in category taxonomy? your second block of code sets post type to book, if you've got another post type you haven't added it to the query.
Aug
15
comment Display related posts with same category or same tag return blank
The built in tag taxonomy is post_tag, not just tag. also, it's odd that the codex example for tax query shows field as id, but I'm fairly sure it should be term_id. try those two changes and see what your results are. also note that you can var_dump( $query ) after you run the query and see if the query parameters are correctly set, anything invalid should be ignored.
Aug
13
answered foreach loop inside the loop creating duplicates in output
Aug
13
comment foreach loop inside the loop creating duplicates in output
is it the case that the projects it happens on don't have leader associated with them? or do all projects have a leader and some are outputting the wrong name?
Aug
13
comment Excluding a Custom Post Type with a specific tag using pre_get_posts
It works because you are using a custom taxonomy, not the built in post tag taxonomy. tag__not_in only works for post_tag, not just any non-hierarchical taxonomy.
Aug
13
comment Excluding a Custom Post Type with a specific tag using pre_get_posts
you're using the built in post_tag taxonomy? tag__not_in is post type agnostic, it just creates a tax_query with the NOT IN operator. you can see it in source here. try having a look at the query in the template, var_dump( $wp_query ) and see if it's applying your tax parameters.
Aug
11
comment wordpress head is empty, append to body
something in your header is outputting something that doesn't belong inside a head tag, so your browser is automatically terminating the head tag and opening the body tag. you have to do some debugging to determine what is causing that invalid output.
Aug
11
comment If post exists in the database - each time goes on `else`
Is your table prefix wp_?
Aug
11
comment Run a Wordpress function inside a wp_query loop result
if the code above is your current code, you are still not using unique IDs for your form elements.
Aug
11
answered Custom post types and custom variables — add_rewrite_tag() not working
Aug
6
comment Wordpress auto login after registration not working
also note that when you set a cookie, it can't be read until the next request, so you need to redirect somewhere for WordPress to recognize that you're logged in.
Aug
6
comment Wordpress auto login after registration not working
how are you registering users? via wp-login.php? this does successfully log someone in when I test it, though you short-circuit the rest of the script when you exit.
Aug
6
comment Cannot get jQuery to work in WordPress
read this.
Aug
6
answered I want to edit the search function
Aug
6
comment Having trouble initializing wordpress within plugin
regarding your edit, how is the file that code is contained within loaded? is it requesting the php file directly via an ajax request? the answer you're looking for is how to successfully load wp-load.php, but the correct answer to your question is how to properly structure the plugin to eliminate the need to load that file.
Aug
5
comment Server Variables not recognized in certain posts
you can't use full page caching, but search around for "fragment cache" with W3 total cache, it'll let you keep specific elements live while caching the rest of the page.