Milo

San Francisco

metaflora.net

I like bicycles and cats.

http://metaflora.net/

5h
answered WordPress unresponsive after calling wp_update_comment()
13h
comment How to display Meta Values from a select box (?) properly
I don't know Woocommerce all that well, and that function is specific to that plugin, but I'd guess that there's nothing that connects the saved values to their display counterparts. It's up to you to store that array somewhere so you can match the saved key to whatever is supposed to display for each value.
13h
comment Custom shortcode with dynamic rewrite
A Shortcode seems like a bad mechanism for this. I would add a plugin option that stores the ID of the page the user wants to use. Otherwise you'd have to search post content every time a page was created or updated to find the Shortcode and generate the necessary rewrite rules for that page. The rewrite rules need to be present when a request is parsed, so most of making this work would have nothing to do with your Shortcode.
13h
comment register_post_type, add_meta_box, add_rewrite_rule
why can't you use taxonomies? you're free to use your own meta box for term selection, but I don't see why you can't get the taxonomy rewrites for free.
1d
comment Where is a plugin location defined on a page and how to include it on a page?
Those are Shortcodes.
1d
comment Custom post type empty slug breaks permalinks for pages
the answer is in that trac ticket - You can always set rewrite to false and handle it yourself. The issue is that you are asking for two things to share a single rewrite pattern, the post type with the higher priority will always win. your options- insert a unique rule for every one of your custom posts, or hook query parsing and determine post type yourself to set the correct query vars for a successful query, or my preference - abandon it and add a unique slug in front of your post type.
1d
answered "next_posts_link" and "previous_posts_link" display me NOTHING
2d
comment WP_Query freezing
calling $query->the_post() is what makes $query->have_posts() eventually return false. $query->the_post() increments a var, $query->have_posts() checks the value of that var. it also populates the current post vars, otherwise template tags would fetch the data from the first post in the loop for every iteration.
2d
comment Override an advanced custom fields action callback
have you tried remove_action with the classname in place of the object var?
2d
comment WP_Query freezing
it doesn't return anything, it advances the internal counter and populates the current post, otherwise $query->have_posts() will return true forever and the loop will never terminate.
2d
comment Override an advanced custom fields action callback
this would be a good question for ACF support, 3rd party plugins are off-topic here.
2d
comment WP_Query freezing
do you call $query->the_post() inside your loop?
2d
comment Redirect File Custom Post Pagination Problem
1 - "pagination doesn't work" is vague, how doesn't it work? 2 - you're not redirecting here, so template_include would be the appropriate filter, or the more specific taxonomy_template. 3 - why are you running a new query in the template when the main query already contains the posts? you're wasting resources doing this. I'll guess that you want to use pre_get_posts instead. also read this.
Oct
28
comment Edit Permalink Structure For Custom Post Type or Modify .htaccess?
what exactly does this plugin do for you that simply registering your own custom post type won't give you? it seems that rather than try to fix the plugin, you can just register a post type with rewrite set to true and be done with it.
Oct
28
comment archive.php can't find categorized posts
It sounds like this is your problem.
Oct
28
comment pre_get_posts not firing at all
$query->is_search should be $query->is_search()
Oct
27
comment Why am I getting an Uncaught TypeError: undefined is not a function with jquery.booklet?
the error is line 1202, testing if the element is draggable, which I believe also requires jquery-ui-widget, which is not part of UI core.
Oct
26
comment add_rewrite_rule issues
check out this answer.
Oct
25
answered add_rewrite_rule issues
Oct
24
comment Pagination issue
possible duplicate of How to fix pagination for custom loops?
1 2 3 4 5