Title: Custom Post Type single.php Problems
Last modified: August 20, 2016

---

# Custom Post Type single.php Problems

 *  [rich147](https://wordpress.org/support/users/rich147/)
 * (@rich147)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-singlephp-problems/)
 * Hi everyone,
 * I’ve struck a problem with a custom post type (Vehicles) that I have created 
   using the Custom Post Type UI plugin. I’ve copied the single.php of the theme
   and created single-vehicles.php
 * The problem I have is that for some reason the single-vehicles.php shows the 
   content from both custom posts that I have created.
 * Even if I make the content of the single-vehicles.php really basic like this 
   it still does the same thing.
 *     ```
       <div class="content-details">
           <h1><?php the_title(); ?></h1>
           <?php the_content(); ?>
       </div>
       ```
   
 * PHP is still pretty new to me – so it’s baffling the hell out of me.
 * Any insight into what may be causing it would be very much appreciated.
 * Rich

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

 *  Thread Starter [rich147](https://wordpress.org/support/users/rich147/)
 * (@rich147)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-singlephp-problems/#post-2590950)
 * The problem can be seen at:
 * It is currently showing two galleries, but each gallery is from two individual
   custom posts.
 * Any help very much appreciated.
 *  [kevmatic34](https://wordpress.org/support/users/kevmatic34/)
 * (@kevmatic34)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-singlephp-problems/#post-2591123)
 * Can you post your functions.php code where you’ve established your custom post
   type? I’m thinking your issue might be in how it’s defined

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

The topic ‘Custom Post Type single.php Problems’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kevmatic34](https://wordpress.org/support/users/kevmatic34/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-singlephp-problems/#post-2591123)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
