bazzle83
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to prevent p tags from being generatedThanks!
Forum: Fixing WordPress
In reply to: question about the conditional tag: if (is_attachment)Thanks anyway mojorob, I’ve redesigned my site to accomodate not being able to do this.
Another things which is frustrating me is the single cat title tag, which only displays on a category page. I want it to display on a single post page aswell, but it doesn’t.
I don’t understand why certain tags can only work on certain pages, or am I missing something here?…
Forum: Fixing WordPress
In reply to: question about the conditional tag: if (is_attachment)Yes I’ve tried that, it doesn’t look at the category ID between the brackets, it only looks at the is_attachment and checks if the page is an attachment.
I’ve also tried in_category.
<?php if ( in_category('3') ) { include(TEMPLATEPATH . '/francesidebar.php'); } ?>For some reason this works fine on a single blog post on single.php, but not on image.php or attachment.php.
Forum: Themes and Templates
In reply to: Can I use php to get the newest images?I made it work with this….
<?php query_posts('cat=3&showposts="1'); ?> <?php while (have_posts()) : the_post(); ?> <a href='<?php the_permalink() ?>'><?php the_content(); ?></a> <?php endwhile; ?>Forum: Fixing WordPress
In reply to: wp_get_archives – but only one categoryI’m trying to do the same thing.
I’ve created a category for image posts.
I want the archive links to display posts purely from that single category.
If anyone has any ideas, that would be much appreciated. 🙂
I’m on 2.5