physman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Howto: Add category selection to QuickPressThank 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
In reply to: Howto: Add category selection to QuickPressIt 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
In reply to: Howto: Add category selection to QuickPressHi 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.