Title: Make custom post type primary post type
Last modified: August 19, 2016

---

# Make custom post type primary post type

 *  Resolved [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/)
 * I love the new feature of the 3.0 series that you can easily define own post 
   types. However, I need to make my post type (and its dedicated taxonomy) the 
   primary one.
 * This means:
    - My post type be “video”
    - Its taxonomies be “videocat” and “videotag”
    - I want the permalink structure to be %category%/%post_name% (yes, I know of
      the performance issues)
    - The /video/ part should not be visible in the URL, instead, there should be
      the according category.
    - Posts should behave like an custom post type in regard to URL structure.
 * In regard to permalinks, the solutions posted in [http://wordpress.org/support/topic/custom-post-type-permalink-rewrite](http://wordpress.org/support/topic/custom-post-type-permalink-rewrite)
   did unfortunately not work for me. (Yes, I did flush the rewrite rules.)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [lxg](https://wordpress.org/support/users/mastermind/)
 * (@mastermind)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989621)
 * I found a solution for the Permalink issue: I have set `'_builtin'=>true` in 
   the `register_post_type()` call.
 * I know it’s marked as internal feature and not recommended for plugin developers,
   but this exactly the feature that solved my problem.
 * All other problems are all solved, too.
 *  [electricman5](https://wordpress.org/support/users/electricman5/)
 * (@electricman5)
 * [15 years ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989762)
 * How did you solve the post-type issue? I would like to set a custom post type
   as the default one as well.
 * Please help, thanks!
 *  [Triple P](https://wordpress.org/support/users/triple-p/)
 * (@triple-p)
 * [15 years ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989763)
 * [@electricman](https://wordpress.org/support/users/electricman/): you can [remove menu items](http://codex.wordpress.org/Function_Reference/remove_menu_page)
   with the `remove_menu_page()` function (since 3.1).
 *  [electricman5](https://wordpress.org/support/users/electricman5/)
 * (@electricman5)
 * [15 years ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989764)
 * Where would I put that code?
 *  [Triple P](https://wordpress.org/support/users/triple-p/)
 * (@triple-p)
 * [15 years ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989765)
 * To remove the Posts menu item from the admin sidebar, put this in your functions.
   php:
 *     ```
       add_action( 'admin_init', 'my_remove_menu_pages' );
       function my_remove_menu_pages() {
       	remove_menu_page('edit.php');
       }
       ```
   
 * Note that this function simply removes the menu item, the posts admin page will
   still be accessible for logged in users who know the url, e.g. [http://mysite.com/wp-admin/edit.php](http://mysite.com/wp-admin/edit.php).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Make custom post type primary post type’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 3 participants
 * Last reply from: [Triple P](https://wordpress.org/support/users/triple-p/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/make-new-post-type-primary-post-type/#post-1989765)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
