To see people in here using hooks and filters, and then hacking core code to complete the fix…. yea, thats not a solution.
We are adding code like this, but for some reason its repeating itself 5 times (which you are able to see because I placed a cursor that displays)
function my_sticky_option($column_name) {
global $post;
global $cursortemp;
if($cursortemp < 1) $cursortemp = 1;
else $cursortemp = $cursortemp + 1;
if ($post->post_type == 'ad_listing'): ?>
<fieldset class="inline-edit-col-right">
<div class="inline-edit-col">
<label class="alignleft">
<input type="checkbox" name="sticky" value="sticky" />
<span class="checkbox-title"><?php _e('Featured Ad (sticky)', 'wp'); echo 'c'.$cursortemp; ?></span>
</label>
</div>
</fieldset>
<?php
endif;
}
add_action('quick_edit_custom_box', 'my_sticky_option');
trying now to find a solution to that problem…
]]>I read somewhere that it can be done using the “quick_edit_custom_box” action hook.
The problem is that I can’t find any documentation about the usage of this hook.
All help is welcome!
Cheers
===
Bruno
I’m currently building a new theme, all is going well and I’ve learnt a huge amount so far although I’m still relatively noob when it come to PHP… I’m trying though!
After a lot of googling I’ve recently figured out how to add custom taxonomies and how to show those custom taxonomy tags within columns in the Edit Posts window.
What I really need to do next however is to figure out how to include my Custom Taxonomies within the inline Quick Edit for each post.
I’m guessing it has something to do with adding an action or function for quick_edit_custom_box within my theme’s functions.php file.
I’ve been digging around wordpress’s core files to try and figure out how the standard post tags are included in the quick editor but tother than the html template haven’t found much.
Thats about as far as I’ve got so far and now I’m really stuck and my brain hurts!
Any help would be hugely appreciated.
Thanks
Stef
What I need, however, is the ability to populate my custom fields with their current values. When adding a custom coumn to the manage posts page (which works similarly to the quick_edit_custom_box hook), this is no problem, because the current post id is passed in as a parameter. quick_edit_custom_box, however, passes in the post type (post or page, I assume) instead of the post id.
I haven’t been able to decipher the order of what is going on in the core, but I know from testing that the quick_edit_custom_box hook must be run at the end, because trying to grab $post returns the last displayed post every time.
I read somewhere else that someone was able to get things working by having some javascript send in the values after the page load, but I REALLY dont want to do that if I dont have to. Surely I’m missing something?
]]>