• Jeff Parsons

    Totally awsum Rachel, thank you!

    Just exactly what I was looking for.  Nicely documented.

    • rachelcarden

       Thanks, Jeff! Glad I could help!

  • Jacob Tekiela

    Great writing Rachel!! thanks for the effort!
    what if you wanted to do a quick edit with the “normal” postdate – how would that be feasible?

    • rachelcarden

      Hmm.. I don’t understand what you mean by “normal” postdate. Could you elaborate a little?

      • Jacob Tekiela

        I need to backdate hundreds of posts. And for some strange reason WP has chosen NOT to allow bulk-editing of the date. (you can change the Author and Status et al.)
        It’s only possible when you do single post Quick Edit. If only one could add the standard date to the bulk edit too – that would be SO great……Other people must have that very basic need.

        I have REALLY been searching hi and low and your excellent idea is the closest I have come so far……… thank you again !!

        • rachelcarden

          Ah. I was confused because in quick edit you CAN edit the date. But you’re right, in bulk edit you can’t edit the date. You could use this tutorial to add the date to bulk edit, though =)

  • jwdavis1957

    Rachel, this looks like the tool I need to update publication dates en masse.  I want to implement the code changes, but I do not know where to paste the code.  I downloaded your .zip files and have them open on my desktop.  Where do I paste them, Rachel?  Or do you have a plugin now?

    • rachelcarden

      Paste the code from my functions.php file into your theme’s functions.php file and then just place the quick_edit.js file in the same folder as your functions.php file.

      • jwdavis1957

        Thanks.  I tried this using two different themes, and placed your code after the themes functions.php code.  I used only one , and I removed the /* and */ as you //commented in the first line.  Cannot get it to work.  Removing all original functions.php code did not work, and placing your code above the original functions.php did not work.  I am a wee bit bamfoozled by this.  Any suggestions, Rachel?  I am really dying to see it work now.  You know how it is… we get a little obsessive about things sometimes :)

  • Poulomi

    Thanks a ton! Your post has been so useful ! :D

    • rachelcarden

       You’re welcome!!!

  • http://twitter.com/webgrafia Marco Buttarini

    something wrong with this:
       
    var $post_ids = new Array();
           $bulk_row.find( ‘#bulk-titles’ ).children().each( function() {
              $post_ids.push( $( this ).attr( ‘id’ ).replace( /^(ttle)/i, ” ) );
           });
       

    The $post_ids is empty

    • will

       I got the same problem when I tried to bulk edit the posts

      • will

        Any help with this block of codes to resolve the bulk edit problem is greatly appreciated!

        • rachelcarden

          Will and Marco, can you let me know which version of WP you’re running? And any other info that might help me troubleshoot, like plugins you’re running or what theme you’re using? What version of jQuery you’re running? Thanks!

    • rachelcarden

      Marco, can you let me know which version of WP you’re running? And any
      other info that might help me troubleshoot, like plugins you’re running
      or what theme you’re using? What version of jQuery you’re running?
      Thanks!

      • will

         Hi Rachel,
          I am using WP 3.2.1.  I installed the codes as you have instructed in one of the comments, but I got a 403 error when I bulk edited the posts:
        Forbidden

        You don’t have permission to access edit.php
        on this server.

        Additionally, a 404 Not Found
        error was encountered while trying to use an ErrorDocument to handle the request.
          Quick edit works fine, but I just have a problem with bulk edit.  Bulk edit other default settings such as author, comments, and status also worked.  And again, I just got the error with bulk edit the custom field (i.e. release date).
          My site uses jQuery 1.6.1 and I am using Classipress theme.
          Any help is greatly appreciated!
        Thanks,
        Will

  • gomymusic

    Hey,

    Nice tut, but I have a problem. The js don’t populate my field with the existing value of custom meta in quick edit menu. Is still work?

    Thanks,

    • rachelcarden

      You probably have a typo in your code somewhere. Check that the id tag for the element in your field’s custom column (step 2) matches the code in the jquery (step 4) that retrieves the info from the column.

      In my example, my custom column looks like:
      echo ” . get_post_meta( $post_id, ‘release_date’, true ) . ”;

      And the jquery looks like:
      var $release_date = $( ‘#release_date-’ + $post_id ).text();

      See how the “release_date-{post id}” needs to match? If that’s not the problem, make sure the existing value is being printed in the custom column and that it’s wrapped in your with the matching ID.

      • gomymusic

        Yeaaah! Thanks a lot, it works.!!
        Btw, I see you know very well WordPress. I have other question, but off topic.
        Can I ask you?
        Ok, I will try :)

        I want to list posts (build in posts) sorted by by percentage discount value between two meta key values.
        meta_key = price
        meta_key = lowprice
        discount = (price – lowprice) / price * 100)
        I want to order posts by this result. Can you help me with that?

        Original question is here

        http://wordpress.org/support/topic/order-posts-by-percentage-discount-value-between-two-meta-key-values

        • rachelcarden

          I commented with some advice. Hope it helps get you started!

          • gomymusic

            I still don’t have any help on my special order problem, maybe if you have time, you can give me some help.
            Thanks.

  • gomymusic

    Hey again,

    Is there any way to change the active field in quick edit? I want to set my custom field from quick edit to be active, not the title as it by default.

    Thanks.

    • rachelcarden

      Hey. Sorry for the delay. Didn’t even know I had a comment!

      Yea. That’s easy! If we were looking at the code in the ‘Populate Your “Quick Edit” Data’ section, we would add the following line after we populated the release date:

      $edit_row.find( ‘input[name="release_date"]‘ ).focus();

      • gomymusic

        Thank you so much !!!

  • Pingback: Earthman Web & Media on "Expiration date added to Quick Edit screen?" | Upgrade Wordpress

  • Nikita

    Great Tutorial, Thank You!