Quote:
Can you tell me where exactly you added this filter?
|
in vbbridge.php
just before
PHP Code:
add_action('publish_post', 'Vbridge_Post');
but you can add anywhere that you want, I put it there to keep it close to the add_action (easy to remember)
please change the posted code to the following, add this filter only in admin end
PHP Code:
if (is_admin()) {
add_filter('wp_dropdown_users', 'vb_post_author');
function vb_post_author($output) {
global $post;
$vb_post_author = get_userdata($post->post_author);
$output = str_replace('</select>','<option value="'.$post->post_author.'" selected>'.$vb_post_author->username.'</option></select>',$output);
echo $output;
}
}