nadine00
Forum Replies Created
-
Forum: Themes and Templates
In reply to: show taxonomy term parent titleOh duh…I can just do this. It’ll work for what I need.
<?php echo get_post_type( $post ); ?>
Adventures in not knowing the ins and outs of custom post types yet. Thanks for your responses. ??
Forum: Themes and Templates
In reply to: show taxonomy term parent title…ah shoot. It doesn’t work for top level. eg:
X Lunch
– Sandwiches
— Turkey
— Tofu
– SoupsIt will return “Sandwiches” if its in “Turkey” but it won’t return “Lunch” If its in “Sandwiches”. …I just need it to return “Lunch”
Sorry. My bad.
Forum: Themes and Templates
In reply to: show taxonomy term parent titleHuzzah! Success. Thank you. ^_^
Forum: Themes and Templates
In reply to: show taxonomy term parent titleHmm. That does not work…odd because I feel it should work.
P.S. Hi! ^_^
Forum: Themes and Templates
In reply to: tag.php acting weird with custom post typesAnyone?
Basically what’s going on is this:
I go to Articles. Articles is a custom post type. In this custom post type I have allowed the user to use all the existing tags on the site.
I click on a tag in a post that is posted in “Articles” it uses the tag.php template, but won’t show posts with that tag. It will however show the tag title. So I don’t really know what’s going on.
Wrong template to be using maybe?
Forum: Themes and Templates
In reply to: tag.php acting weird with custom post typesAnyone?
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxYep changed! Thanks for the responses. Appreciated. ??
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxHa!
'value' => true
changed to
'value' => 'true'
That really needs to be somewhere in the codex, also SO glad it wasn’t anything else.
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxthe meta echos out as “true” from inside the loop.
the in loop one doesn’t work because in my ghetto attempt I forgot that it has to be in the query array part. I want it to display posts in custom post type AND have front_event checked.
The case is right. Maybe i have to do some kind of global query for that piece of data in front_event and then use it in a post query?
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxAnd of course the ghetto version doesn’t work, because its in the loop. So…anyone? Suggestions?
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxI could do something like this:
[Code moderated as per the Forum Rules. Please use the pastebin]
But for some reason that comes back as nothing. Suggestions?
Nadine
Forum: Themes and Templates
In reply to: add_meta_box …as a checkboxHey Thanks so much! That worked great. ??
Additional question. I’m trying to pull just one post via that check box. So I made up some arguments for a query:
<?php $event =array( 'post_type' => 'Events', 'posts_per_page' => 1, 'meta_key' => 'front_event', 'meta_value' => true );?> <?php query_posts($event);?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> ....etc...
This usually works with just straight up custom fields in categories, but not here. What am I doing wrong? Do I need to access this information from the check box in a different manner?
Thanks again. Sorry for the questions. this is my first time using custom post types.
Nadine
Forum: Themes and Templates
In reply to: Can't get sub-menu to display / multiple category issueAnyone?
Forum: Themes and Templates
In reply to: Find the category nameyay i just forgot an echo….see this what not sleeping does to you.
Forum: Themes and Templates
In reply to: one widget shared between multiple sidebarsNevermind. Closing this one off.