Link to create new post
-
I know that if I wish to create a link for users to create a new post I can do so by i.e.
<?php if(is_user_logged_in() && current_user_can('read_notice')) : ?> <a href="<?php get_bloginfo('url'); ?>/wp-admin/post-new.php?post_type=notice" title="Contribute">Add New</a> <?php endif; ?>
The code above links to creating a new post (post_type notice) but is there a way I can also force what “custom taxonomy” the post is created in? I have a custom taxonomy called “type” in which I have a specific category called “computers”.
Was thinking maybe:
/wp-admin/post-new.php?post_type=notice&type=computers
but that does not work. Any suggestions assuming it is possible to do.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Link to create new post’ is closed to new replies.