Hi, I tried the code above, but got a 404 error... I removed the line $link = str_replace('?u=', '&u=', $link); and I could get to the Post page, but it posted as a Post still, instead of the Bookmark post type.
I then changed the $link = str_replace('post-new.php', "post-new.php?post_type=$post_type", $link); to press-this.php -- but it still posts as a Post, not the custom type
Final code changes that I made:
<?php
function press_this_ptype($link) {
$post_type = 'bookmark';
$link = str_replace('press-this.php', "press-this.php?post_type=$post_type", $link);
//$link = str_replace('?u=', '&u=', $link);
return $link;
}
add_filter('shortcut_link', 'press_this_ptype', 11);
?>
Any help would be greatly appreciated!
====================================================================
EDIT: I had a typo earlier in my function.php file -- the original code worked perfectly for me!