Title: Custom Post Type &#8211; Sub URL&#039;s
Last modified: August 19, 2016

---

# Custom Post Type – Sub URL's

 *  [projectfuturism](https://wordpress.org/support/users/projectfuturism/)
 * (@projectfuturism)
 * [15 years ago](https://wordpress.org/support/topic/custom-post-type-sub-urls/)
 * Hey guys,
 * Let’s say I have a Custom Post Type, but want to display it over a few pages 
   rather than one page.
 * It’s kind of like a user profile.
 * So let me explain in URL terms.
 * I want it to be:
 * _Main Profile Page_
    [http://www.example.com/profile123/](http://www.example.com/profile123/)
 * _Images Page_
    [http://www.example.com/profile123/images/](http://www.example.com/profile123/images/)
 * _Contact_
    [http://www.example.com/profile123/contact/](http://www.example.com/profile123/contact/)
 * Now, I know you can do custom taxonomys, but thats the reverse, ie the ‘profile123’
   parent rather than child.
 * As you can see, it’d be a wise thing for them all to be lumped into the one profile,
   rather than 3 different ‘pages/posts’ in the database.
 * How would I go about this???
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [projectfuturism](https://wordpress.org/support/users/projectfuturism/)
 * (@projectfuturism)
 * [15 years ago](https://wordpress.org/support/topic/custom-post-type-sub-urls/#post-2075517)
 * OK, so I solved it using the $_GET function.
 *     ```
       <?php
   
       $page_display = $_GET["c"];
   
       if ($page_display == showcase) {
           require('profile_showcase.php');
       } elseif ($page_display == reviews) {
           require('profile_reviews.php');
       } elseif ($page_display == directions) {
           require('profile_directions.php');
       } elseif ($page_display == contact) {
           require('profile_contact.php');
       } else {
           require('profile_about.php');
       }
       ?>
       ```
   
 * It does the trick, but does have a few drawbacks which I am working on.

Viewing 1 replies (of 1 total)

The topic ‘Custom Post Type – Sub URL's’ is closed to new replies.

## Tags

 * [page](https://wordpress.org/support/topic-tag/page/)
 * [slugs](https://wordpress.org/support/topic-tag/slugs/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [projectfuturism](https://wordpress.org/support/users/projectfuturism/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/custom-post-type-sub-urls/#post-2075517)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
