Adding the link post type is easy when we know how to display the form and handle it. So, let's quickly add the link template to our plugin:
Lets create
template/link.php
file<div class="wrap"> <?php if (!empty($error)) : ?> <div id="message" class="error fade"> <p><?php echo $error; ?></p> </div> <?php elseif (!empty($published_id)) : ?> <div id="message" class="updated fade"> <p><strong><?php _e('Link added.',$this->plugin_domain); ?> </strong> <a href="<?php echo get_permalink( $published_id); ?>"><?php _e('View post',$this->plugin_domain); ?> »</a></p> </div> <?php endif; ?> <h2><?php _e('Add Link',$this->plugin_domain); ?></h2> <form action="" method="post"> <?php wp_nonce_field($_GET['page']); ?> <div id="poststuff"> <div class="submitbox" id="submitpost...