38,484 reputation
21840
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 9 months
seen 19 mins ago

I like bicycles and cats.

http://metaflora.net/


Jan
13
comment wp_enqueue_script was called incorrectly… i want to work with debug on
search your wp-content directory for instances of wp_enqueue_script, it's elsewhere in your theme, or a plugin.
Jan
13
comment Rewrite Rules with custom taxonomies not changing
rewrite rules parse incoming "pretty" requests into query vars, they have nothing to do with generating those requests. you have to write the code that generates the correct URL from form input yourself. also not that type is an existing WordPress query var, you may get unexpected results using that.
Jan
13
comment Converting HTML Template to Wordpress Theme
you should be enqueueing your styles and scripts, not putting them directly in header.
Jan
13
comment Broken paths on taxonomies after changing permalink to post name
the template that loads when you try to view a term. if you look at the query vars and SQL, you'll see what WordPress is trying to query for.
Jan
13
comment Broken paths on taxonomies after changing permalink to post name
what does your taxonomy registration code look like? also var_dump($wp_query) in the template to see what WordPress is looking for.
Jan
12
comment How to add an extra, independent set of custom fields?
If you prefix field names with an underscore, they'll be hidden from the built-in Custom Fields meta box. You can then add your own meta box to manage your specific custom fields. I don't understand the part of your explanation regarding filtering them in your theme or other plugins using post meta.
Jan
12
answered Iterate through ID's in loop
Jan
12
comment Problem on wpdb queries, wp_insert_post, wp_insert_user etc. The query runs twice
your code inserts a single post when I test it, so a guess would be that more than one request is hitting the page containing the shortcode. this is obviously not a safe way to execute code, you should be taking steps to insure something runs once if you only want it to run once.
Jan
12
comment Problem on wpdb queries, wp_insert_post, wp_insert_user etc. The query runs twice
What is the context of your code, where does it run, what action is it hooked to?
Jan
11
comment setcookie not working when defined with '/' but working if not defined
What happens if you use the COOKIEPATH constant?
Jan
10
comment mod_rewrite doesn't work as I want even with JSON API Plugin disabled
The plugin intercepts requests the same way all other pretty permalinks function within WordPress, using the default rewrite rules in the .htaccess file. perhaps it would be better to describe what problem you are trying to solve by using your own php file rather than ask about the solution you think you need.
Jan
10
answered Reducing the use of global $post
Jan
10
comment 'Trying to get property of non-object' when using WP_Query with 'fields' => 'ids'
@ScottKingsleyClark indeed, if you intend to use WP template tags and/or get post data for all posts returned by WP_Query then you're doing it wrong by using the fields argument. I assumed that OP just needed IDs and not full post objects. I thought that was reflected in the example code I provided, but perhaps I should have been more explicit.
Jan
10
answered Generating a static page from a script
Jan
9
comment Trying to get single posts to load on the front page via ajax
do you have errors in your javascript console? do you have debugging enabled? did you verify that your query works outside of the context of the ajax function? you have to set post type if it's not post.
Jan
9
comment Trying to get single posts to load on the front page via ajax
it should be $_POST['post_id']
Jan
9
comment Trying to get single posts to load on the front page via ajax
your ajax function tries to use id, but your javascript passes post_id
Jan
9
comment WordPress generating 2 URLs of single post
mysite.com/mycat/post should 301 redirect to the correct URL via the redirect_guess_404_permalink in the redirect_canonical function, which Google will not index. your theme or a plugin is breaking this function, so you need to do some testing to determine what is removing it.
Jan
9
comment Secondary loop doesn't work
why is 'p' => $id in your query arguments? where do you set $id?
Jan
9
comment WordPress generating 2 URLs of single post
What is your permalink structure set to under settings > permalinks? this doesn't happen with a core theme and no plugins, so something in your particular theme/plugin configuration is causing this problem.