56 reputation
6
bio website
location London
age
visits member for 1 year, 7 months
seen 3 hours ago

Apr
11
comment How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
Thanks, I couldn't get this to work in the end. But I used your if( $post->post_type != 'targeted-post-type' ) return; code to target my post type. I had to add global $post; above to get it to work though.
Apr
11
comment How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
Thanks, that makes sense. They're just registered custom taxonomies. Is it easier to create them via add_meta_box in terms of setting priority? I would have done that, but I would like them to function as categories, not tags or standard meta input boxes.
Apr
10
comment How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
Oh and also, this changes the meta boxes for every single post type. How do I target just one?
Apr
10
comment How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
Thanks for this. I use a few custom meta boxes already though. How about if I just wanted that specific taxonomy meta box to be displayed there, and the rest in their usual order? I'm unsure how to target a specific one...
Mar
27
comment Setting a custom $query->query_vars['meta_key'] breaks the WordPress menu
Thanks a lot for the help. The previous developer has coded the templates in such a way that he uses a few queries for an A-Z feature, so I think I'll just stick with what is working for now and use pre_get_posts in future. I have used it before on another project, but that was modifying the main query to only use a custom post type. Anyway, thanks again for the help!
Mar
27
comment Setting a custom $query->query_vars['meta_key'] breaks the WordPress menu
I'd love to make it more efficient, but I don't see how its needlessly running an extra query if I can't get it to work using the functions.php method... The code I'm using is: 'if( isset($_GET['county']) ) { $args = array_merge($wp_query->query, array( 'orderby' => 'title', 'order' => 'asc', 'meta_query' => array( array( 'key' => 'venue_county', 'value' => $_GET['county'], 'compare' => '=' ) ) ));'
Mar
27
comment Setting a custom $query->query_vars['meta_key'] breaks the WordPress menu
It is a query used on an archive page of a custom post type.
Feb
7
comment How to export/import theme customizer settings?
Can I +1 this suggestion? This would be incredibly useful
Jan
17
comment WordPress multi-site, developing locally and syncing live changes
Hi Brad, sorry I meant a plugin that gets just the wordpress XML content and imports that. Nevermind though I'm going download a new copy of the live site and apply all the dev changes I did to that, instead.
Jan
17
comment WordPress multi-site, developing locally and syncing live changes
The way this one has been setup yes, each multisite install uses the same db but with a different prefix. Oh well I'll just do it manually.
Jan
17
comment WordPress multi-site, developing locally and syncing live changes
Hey, you've just described my workflow process ;) I'm fine with getting the local dev version going, I was just wondering if people had any clever methods of syncing any live content changes. However, if it is just content added by the client that should all be carried over on a WordPress XML import. It's just I will have to do the Export/Import on 25 multisites, so I was hoping there might be a quicker way.
Jan
30
comment Using is_main_query to select custom post type on certain page
Thanks for the trip about not having to append the $query-> calls. I tried targetting a specific page ID with your method, but when I try to load the page the 404.php template is loaded. However I think I was asking the wrong question for myself, I just need to use a secondary loop with WP_Query instead of trying to alter the main query in this case, since I need the page title info from it. I was using query_posts but I understand its better to use a new WP_Query.