WordPress.org

Support

Support » Plugins and Hacks » Enhanced Post List plugin. Anyone have it working in 2.0? I have partial success

Enhanced Post List plugin. Anyone have it working in 2.0? I have partial success

  • I have been wanting to use this plugin, as it came in quite handy in earlier versions of WP.

    It does not work in WP 2.0 due to user_level calls.

    I found a post about getting authors in WP 2.0 and have been playing around a bit with the Enhanced Post List plugin code.

    I have it working so that it displays, but it just shows the user ID of each author. I’m not PHP or SQL savy enough to do a complex query to get the actual author name.

    It is the meta_value of a meta_key=”nickname” in the wp_usermeta table.

    Anyways, here is the portion I have so far. Maybe it will be a jumping off point for someone. I hadn’t contacted the plugin author due to his recent posts. I’m sure updating his plugins is further down on his list due to recent events in his life. Maybe as a WP community, we can update this plugin. The rest of it works just fine in 2.0, its just the drop down list for the authors.

    [code]
    if( !function_exists( ‘EV_dropdown_authors’ ) ) {
    function EV_dropdown_authors( $currentauthor ){
    global $wpdb;

    $users = $wpdb->get_results( “SELECT user_id FROM $wpdb->usermeta WHERE meta_key = ‘wp_capabilities’ AND meta_value REGEXP \”contributor|author|editor|administrator\””);
    $return_string = ”;
    foreach( $users as $user ) {
    $return_string .= ‘<option value=”‘.$user->user_id.'”‘.( $currentauthor == $user->user_id ? ‘ selected=”selected”‘:”).’>’.$user->user_id.'</option>’;
    }
    return $return_string;
    }
    }
    [/code]

    Idea obtained from this thread
    http://wordpress.org/support/topic/50007?replies=3#post-275673
    posted by Kafkaesqui

  • The topic ‘Enhanced Post List plugin. Anyone have it working in 2.0? I have partial success’ is closed to new replies.
Skip to toolbar