« first day (1304 days earlier)      last day (3939 days later) » 

09:32
Struggling with adding Custom field in Quick Edit (for post_type = post) panel. I'm struggling passing post ID into the function what is hooked with quick_edit_custom_box.
add_action('quick_edit_custom_box',  'quickedit_posts_custom_box', 10, 2);

function quickedit_posts_custom_box( $col, $type ) {
    if( $col != 'featured-box' || $type != 'post' ) {
        return;
    } ?>
    <fieldset class="inline-edit-col-right"><div class="inline-edit-col">
        <div class="inline-edit-group">
            <label class="alignleft">
                <input type="checkbox" name="make_featured_product" id="make_featured_product">
                <span class="checkbox-title">Make Featured</span>
made this code with the help of wordpress.stackexchange.com/a/8098/22728
Actually I want to check the checkbox if the custom field 'featued' => 1. I've tried global $post; $post->ID, it's always taking the last post's ID.
Anybody?
@ialocin thanks :)
@MayeenulIslam Adding stuff into quick edit sucks. You can't get the post ID at quick_edit_custom_box because it runs once for all posts. That's why you need the JavaScript part to update the quick-edit field when a post is selected.
09:52
Thanks. Just figured that out, and now is following:
http://wpdreamer.com/2012/03/manage-wordpress-posts-using-bulk-edit-and-quick-edit/
Let's see how far I can get. :)
10:09
user image
3
@kaiser The future of mobile apps: the internet.
 
7 hours later…
17:28
add_filter( 'wp_cache_themes_persistently', '__return_true' ); // much faster to enumerate themes a lot, no invalidation though h/t @nacin
good stuff
the core almost feels fast. I am not used to this...
 
3 hours later…
20:49
Andddddd it's gone. Link now goes to RootBuzzHowdy_McGee 1 min ago
shit.
@Rarst Question about QP
this table for example - How do you have it just ... hide columns when the screen is smaller?
How do you have the first two columns display for sure, but the rest are shown/hidden depending on screen size? My table isn't doing that.
looks at source and styling, it uses hidden-phone classes, etc. however BS had never supported them in tables so it's a hack rather than proper implementation
<span class="visible-desktop">...</span>
Thanks
Are you using 2.0?
I hadn't touched QP in a long time, it's up for major update after official reference is finished up
21:14
> A scientist has his science to worry about so he doesn't have time to complexify the code needlessly. Many programmers have no real substance in their work - the job is trivial - so they have too much time on their hands, which they use to dwell on "API design" and thus monstrosities are born. yosefk.com/blog/…
har-har-har
21:37
meh he has it wrong
most peoples code is a mess
the people he complains about are simple architect astronauts
21:55
not wrong really, just usual clash of "proper" programming and "getting things done" programming. just in science context.

« first day (1304 days earlier)      last day (3939 days later) »