Title: WordPress title permalink for custom post type
Last modified: August 21, 2016

---

# WordPress title permalink for custom post type

 *  [girll](https://wordpress.org/support/users/girll/)
 * (@girll)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-title-permalink-for-custom-post-type/)
 * Hi all. I have a question. I register new post type and I want its title as permalink
   to single post’s page.
 * Here is my code:
 *     ```
       register_post_type('video', array(
       			'label' => __('Videos'),
       			'singular_label' => __('video'),
       			'public' => true,
       			'show_ui' => true, // UI in admin panel
       			'capability_type' => 'post',
       			'hierarchical' => false,
       			'rewrite' => array("slug" => "video"), // Permalinks format
       			'supports' => array('title','author')
       		));
       ```
   
 * And the permalink:
 * `<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?
   ></a></h1>`
 * I want it open like posts with post_type post. How to do it?

The topic ‘WordPress title permalink for custom post type’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [girll](https://wordpress.org/support/users/girll/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-title-permalink-for-custom-post-type/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
