617 reputation
512
bio website
location Belgium
age
visits member for 2 years, 11 months
seen 1 hour ago

Aug
1
awarded  Notable Question
Jul
28
awarded  Notable Question
Apr
17
awarded  Popular Question
Nov
19
comment how to show posts on different pages if number of post per page is one
I would avoid using query_posts - better change the main query with pre_get_posts - see documentation
Nov
13
comment Disable collapse of admin meta boxes
Doesn't seem to work (any more), postbox is removed from the in_footer array, but is loaded nonetheless. Found a working solution here, which neatly unbinds the click-handler, and leaves all other postbox functionality in place.
Nov
12
comment Disable dragging of meta boxes?
seemed a perfect solution at first - but alas - this also disables all functionality for adding category/taxonomy...
Nov
12
awarded  Excavator
Nov
12
revised Disable dragging of meta boxes?
fixed css code (missing :hover pseudoclass)
Nov
12
comment Disable dragging of meta boxes?
Good addition to @bueltge answer ( i used a combination of both ) - though you could also skip the jQuery bit, and add .postbox:hover .handlediv { display:none; } in CSS to hide the .handlediv
Nov
12
suggested suggested edit on Disable dragging of meta boxes?
Nov
6
comment Get all posts from custom post type and insert in select input as metabox
Also, personally I wouldn't store the permalink as the meta value, but the ID of the Services post. Code for selected option would then be something like <option value="<?php the_ID();?>" <?php if($slide_ID == get_the_ID()) { echo " selected" }?> ><?php the_title(); ?></option>
Nov
6
comment Get all posts from custom post type and insert in select input as metabox
1. change that in services-post-type: not sure what you mean - all I know is that the save_post hook takes the ID as a parameter. 2. Select changed to default upon save: you need to add 'selected' to the <option> with the same URL as the one you retrieved with get_post_meta.
Nov
6
comment Get all posts from custom post type and insert in select input as metabox
Try changing rm_save_slider_meta($post) to rm_save_slider_meta($post_id)?
Nov
6
revised Get all posts from custom post type and insert in select input as metabox
deleted 52 characters in body
Nov
6
revised Get all posts from custom post type and insert in select input as metabox
added 49 characters in body
Nov
6
answered Get all posts from custom post type and insert in select input as metabox
Oct
3
awarded  Yearling
Jun
13
awarded  Popular Question
May
31
comment where does this $post_id come from?
ok, that explains, thanks!
May
31
accepted where does this $post_id come from?