Title: bphil00's Replies | WordPress.org

---

# bphil00

  [  ](https://wordpress.org/support/users/bphil00/)

 *   [Profile](https://wordpress.org/support/users/bphil00/)
 *   [Topics Started](https://wordpress.org/support/users/bphil00/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bphil00/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bphil00/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bphil00/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bphil00/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bphil00/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322397)
 * Well… damn, it’s a great idea for a plugin and definitely one that should be 
   part of the wordpress core.
    Let me know if you get it functional, in the meantime,
   I guess I’m back to the drawing board.
 * Anyone know of a plugin that adds custom templates to posts??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322332)
 * Actually, when I load that post it uses the 404 template.
    I’m at a loss here
   as to why this is happening.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322327)
 * okay, I changed the uppercase ‘Items’ to ‘items’ and it worked! The meta box 
   now shows up in the custom post editor. Unfortunately it’s not applying the template
   to the post’s page when viewing it.
 * Here’s the code I used to register it:
    [http://pastebin.com/hvHDqFk1](http://pastebin.com/hvHDqFk1)
 * Any idea why it’s not applying the template?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322305)
 * Thank You!
    I’ll try it when I get home and update you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322296)
 * damn it, moderator!
    I’m at work now, I’ll repost using pastebin when I get home
   this evening. Sorry about that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] [Plugin: Custom Post Template] custom post types](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/plugin-custom-post-template-custom-post-types/#post-2322291)
 * sure, here it is:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_post_meta returning post id instead of the value](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/#post-2312409)
 * yes, your explanation is what made me think to try that. thanks again!
    also 
   thanks tomaltman for your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_post_meta returning post id instead of the value](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/#post-2312396)
 * boom!
    and there it is, thank you japh! with just one minor adjustment to your
   suggestion, adding echo before get_post_meta:
 * `<?php echo get_post_meta(get_the_ID(), 'blurb', TRUE); ?>`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_post_meta returning post id instead of the value](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/#post-2312355)
 * still displays nothing 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_post_meta returning post id instead of the value](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years ago](https://wordpress.org/support/topic/get_post_meta-returning-post-id-instead-of-the-value/#post-2312348)
 * `<p><?php get_post_meta('echo $post_id', 'blurb', TRUE); ?></p>`
 * this now displays nothing, not even the id
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [categories > products](https://wordpress.org/support/topic/categories-products/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/categories-products/#post-2298921)
 * update:
 * okay, what about this?
 *     ```
       <?php
       $productCats = get_categories( 'child_of' => 3 ); //the ID of the
       parent category
       foreach($productCats as $productCat) {
         echo '<article class="item">
                             <a href="products/' . $productCat->slug .
       '.php"><img src="images/categoryThumbs/' . $productCat->slug . '.jpg"
       alt=" " />
                             <h2>' . $productCat->name . '</h2></a>
                             <p>' . $productCat->description . '</p>
                     </article>' ;
       }
       ?>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [categories > products](https://wordpress.org/support/topic/categories-products/)
 *  Thread Starter [bphil00](https://wordpress.org/support/users/bphil00/)
 * (@bphil00)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/categories-products/#post-2298711)
 * oh, also I was planning on using a plug-in to assign a thumbnail image to each
   category, for use in this php code. Any recommendations?

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