bphil00
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typesWell… 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
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typesActually, when I load that post it uses the 404 template.
I’m at a loss here as to why this is happening.Forum: Plugins
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typesokay, 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:
https://pastebin.com/hvHDqFk1Any idea why it’s not applying the template?
Forum: Plugins
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typesThank You!
I’ll try it when I get home and update you.Forum: Plugins
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typesdamn it, moderator!
I’m at work now, I’ll repost using pastebin when I get home this evening. Sorry about that.Forum: Plugins
In reply to: [Custom Post Template] [Plugin: Custom Post Template] custom post typessure, here it is:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: get_post_meta returning post id instead of the valueyes, your explanation is what made me think to try that. thanks again!
also thanks tomaltman for your help.Forum: Fixing WordPress
In reply to: get_post_meta returning post id instead of the valueboom!
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
In reply to: get_post_meta returning post id instead of the valuestill displays nothing ??
Forum: Fixing WordPress
In reply to: get_post_meta returning post id instead of the value<p><?php get_post_meta('echo $post_id', 'blurb', TRUE); ?></p>
this now displays nothing, not even the id
Forum: Themes and Templates
In reply to: categories > productsupdate:
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
In reply to: categories > productsoh, 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?