Title: Custom post template?
Last modified: August 20, 2016

---

# Custom post template?

 *  [speedyp](https://wordpress.org/support/users/speedyp/)
 * (@speedyp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-post-template-5/)
 * I’m trying to develop a simple (easy to use) template for users to list products
   on their site.
 * I’m almost there, but need a bit of help with the last bit.
 * I’m using this in the functions.php to add some default content. It allows me
   to add and style anything I want to new posts. The only problem is that it adds
   the content to EVERY post.
 * Hoping someone can show me how to add my default content only to a specific category
   eg. products.
 *     ```
       add_filter( 'default_content', 'custom_editor_content' );
          function custom_editor_content( $content ) {
          $content = '
             <div class="content-col-main">
             This is your main page content
             </div>
             <div class="content-col-side">
             This is your sidebar content
             </div>
          ';
          return $content;
          }
       ```
   
 * I did try using custom post types before, but it’s important to me that the “
   products” behave like normal wp posts, so they are easily sorted and play nicely
   with widgets like recent posts etc etc.
 * Hope someone can help – Thanks
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping), thank you.]_

The topic ‘Custom post template?’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 0 replies
 * 1 participant
 * Last reply from: [speedyp](https://wordpress.org/support/users/speedyp/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/custom-post-template-5/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
