dbunit16
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: single.php and CategoriesGreat! I will try this! Where would I place this code?
Forum: Fixing WordPress
In reply to: single.php and CategoriesIn other words… is this valid:
<?php if (is_category(1)) { // looking for category 1 posts include(TEMPLATEPATH . '/single1.php'); if (is_category(9)) { // looking for category 2 posts include(TEMPLATEPATH . '/single2.php'); if (is_category(9)) { // looking for category 3 posts include(TEMPLATEPATH . '/single3.php'); if (is_category(9)) { // looking for category 4 posts include(TEMPLATEPATH . '/single4.php'); } else { // put this on every other category post include(TEMPLATEPATH . '/single.php'); } ?>Forum: Fixing WordPress
In reply to: single.php and CategoriesI was able to find this code:
<?php if (is_category(9)) { // looking for category 9 posts include(TEMPLATEPATH . '/single2.php'); } else { // put this on every other category post include(TEMPLATEPATH . '/single1.php'); } ?>Can I just keep adding if statements? for each category before the else?
Forum: Fixing WordPress
In reply to: Custom Fields – Help!Actually, it was a simple oversight, I forgot to capitalize “Price”.
Thanks for the help!
Forum: Fixing WordPress
In reply to: Custom Fields – Help!I tried this:
<?php $key=”price”; echo get_post_meta($post->ID, $key, true); ?>
but it doesn’t seem to work!
Forum: Fixing WordPress
In reply to: Custom Fields – Help!I found this: $readinglist = $post_meta_cache[256][‘reading’];
on http://codex.wordpress.org/Using_Custom_Fields but don’t quite understand it.
Where do the php tags go? For me would it be:
$price = $post_meta_cache[$post->ID][‘price’]Please advise. I’m just trying to display the Price from my custom “price” field.
Thanks,
Jon
Forum: Fixing WordPress
In reply to: Tags, Comments not showing!Please… somebody has to know how to do this! Thank you!
Forum: Fixing WordPress
In reply to: Tags, Comments not showing!I want to show 1 main story (this is the most recent post from ANY category): http://azfans.com/recent-posts
Then other stories by category under “Recent Blog Posts” (see the tabs). I first call for the most recent 6 posts from all categories, then 6 from cat 4 (suns), cat 5 (d-backs), and cat 6 (cardinals).
Forum: Fixing WordPress
In reply to: Tags, Comments not showing!I also use a php include on this page to bring in the posts from specific categories:
<?php global $post; $myposts = get_posts('numberposts=6&offset=0&category=6'); foreach($myposts as $post) : setup_postdata($post); ?> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: Tags, Comments not showing!I believe so… I have this before:
<?php $my_query = new WP_Query('showposts=1'); if ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>Then call for the title, author, cat, excerpt, etc. But the tags and comments don’t show.
I end with this after:
<?php endif; ?>Thanks!
Forum: Fixing WordPress
In reply to: Tags, Comments not showing!Can anybody help me with this?
Forum: Fixing WordPress
In reply to: Recent Posts from CategoryJust found this. It’s working!
<ul> <?php global $post; $myposts = get_posts('numberposts=5&offset=1&category=3'); foreach($myposts as $post) : setup_postdata($post); ?> <li><?php the_title(); ?> </li> <?php endforeach; ?> </ul>Forum: Fixing WordPress
In reply to: Custom Side BarThank you!
Forum: Fixing WordPress
In reply to: Question on sharing usersThis was really easy! Perfect!
Thank you eduthemes!
Forum: Fixing WordPress
In reply to: Amazon Style StoreThanks! Evita’s option sounds like the way to go right now. The problem is that the products will mostly be from other affiliate programs, not just Amazon.
Is there an example, or site already running this? Couldn’t find one on the plug-in page.
Thanks for the help!