joshuaschoenaker
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Loading external post/content to a specific div (jquery)I am looking for something similar.. did you find out how to do it?
Forum: Plugins
In reply to: ajax posts/ no page reloadCould this be something I am looking for?
I am definitely not a Javascript/ PHP pro, so I’m hoping someone could point me in the right direction.
Forum: Plugins
In reply to: in_category(() not workingGreat man! Thank you very very much!
Forum: Plugins
In reply to: in_category(() not workingI want to test the current category of the post.
In other words: I want the same list of thumbnails that are on the category page, to appear on the single post which is in that category.
So when viewing a post in ‘identity design’ (like this one), I want the thumbnails of that category to appear exactly the same as on the category page, (this one).
Forum: Plugins
In reply to: in_category(() not workingYeah, that works. Awesome. But in my own template I have 2 loops. Maybe I did something wrong there?
Forum: Plugins
In reply to: in_category(() not workingI’m sorry to keep bothering you, but I truly can’t figure it out. Looked at all the documentation and examples, started all over. Copy pasted the coding from the examples, but it’s still not working.
Why can’t the single post see in which category it is??
Forum: Plugins
In reply to: in_category(() not workingI’ve also tried this:
<?php if (is_single() && in_category()) { ?>
but it doesn’t work neither.. I really don’t know what’s wrong here.Forum: Plugins
In reply to: in_category(() not workingThanks for the quick response. But it still outputs ‘Not Found’.
Code becomes this now right?:
<?php if (rewind_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php /* If this is in a category archive */ if (in_category()) { ?> <ul class="post"> <?php } ?> <li id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img width="45px" height="40px" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>" /> </a> </li> <?php endwhile; ?> </ul> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?>
You can check it out here.
Forum: Plugins
In reply to: is_category() and in_category() not workingHi Michael and maybe others,
I’m having problems with the
if ( in_category())
as well.In my archive.php the loop works perfect with the
if ( is_category())
, but I want to display this list of posts also on the single.php. This means I need to make a multiple loop with the<?php if (rewind_posts()) : ?>
function, and this seems to work. But it outputs the ‘Not Found’ message. It can’t seem to figure out which category the single post is in.Here is my code:
<?php if (rewind_posts()) : ?> <?php /* If this is in a category archive */ if (in_category()) { ?> <ul class="post"> <?php } ?> <?php while (have_posts()) : the_post(); ?> <li id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img width="45px" height="40px" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>" /> </a> </li> <?php endwhile; ?> </ul> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?>
I have tried to put ‘4’ and ‘identity-design’ for example, also without the ( ‘ ) but no luck..
This is the code in archive.php that does work:
<?php if (have_posts()) : ?> <?php /* If this is a category archive */ if (is_category()) { ?> <ul class="post"> <?php } ?> <?php while (have_posts()) : the_post(); ?> <li id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img width="70px" height="70px" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>" /> </a> </li> <?php endwhile; ?> </ul> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?>
Thank you very much in advance. Would mean a lot.