Title: physman's Replies | WordPress.org

---

# physman

  [  ](https://wordpress.org/support/users/physman/)

 *   [Profile](https://wordpress.org/support/users/physman/)
 *   [Topics Started](https://wordpress.org/support/users/physman/topics/)
 *   [Replies Created](https://wordpress.org/support/users/physman/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/physman/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/physman/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/physman/engagements/)
 *   [Favorites](https://wordpress.org/support/users/physman/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Howto: Add category selection to QuickPress](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/)
 *  [physman](https://wordpress.org/support/users/physman/)
 * (@physman)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/#post-1232729)
 * Thank you very much for all of your effort. I’m going to set it up this way for
   now. I’ll have my users use it like this for a while, then I’ll look through 
   the code and see if there is anything that I can find that might be able to work
   without making it disappear. Maybe I can find something in there. Who knows, 
   it might not be possible at all. I think this would be a very nice feature for
   them to implement in future releases of wordpress.
 * You’ve really saved me users a lot of headache. If you’re ever in Taipei let 
   me buy you a cup of coffee!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Howto: Add category selection to QuickPress](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/)
 *  [physman](https://wordpress.org/support/users/physman/)
 * (@physman)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/#post-1232726)
 * It works perfectly like it should when you first log in and write your first 
   post. After pushing publish the category box disappears. Same problem as adding
   that code in the function file. I believe after you push the publish button it
   goes to the part of the dashboard.php
 *     ```
       function wp_dashboard_quick_press() {
       	$drafts = false;
       	if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) {
       		$view = get_permalink( $_POST['post_ID'] );
       		$edit = esc_url( get_edit_post_link( $_POST['post_ID'] ) );
       		if ( 'post-quickpress-publish' == $_POST['action'] ) {
       			if ( current_user_can('publish_posts') )
       				printf( '<div class="message"><p>' . __( 'Post Published. <a href="%s">View post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', esc_url( $view ), $edit );
       			else
       				printf( '<div class="message"><p>' . __( 'Post submitted. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', esc_url( add_query_arg( 'preview', 1, $view ) ), $edit );
       		} else {
       			printf( '<div class="message"><p>' . __( 'Draft Saved. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', esc_url( add_query_arg( 'preview', 1, $view ) ), $edit );
       			$drafts_query = new WP_Query( array(
       				'post_type' => 'post',
       				'post_status' => 'draft',
       				'author' => $GLOBALS['current_user']->ID,
       				'posts_per_page' => 1,
       				'orderby' => 'modified'
       ```
   
 * I’m not sure exactly where it will pull up a different part of the file to make
   that disappear.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Howto: Add category selection to QuickPress](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/)
 *  [physman](https://wordpress.org/support/users/physman/)
 * (@physman)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/howto-add-category-selection-to-quickpress/#post-1232722)
 * Hi t31os,
 * Have you figured out how to get this to work better? I’m setting up a PMU installation
   for our school and find that this would be the easiest way for my teachers to
   be able to post about two different grades on one installation. I also have that
   same problem as johnywhy. Any help you could give would be appreciated.
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)