therizone
Forum Replies Created
-
Forum: Plugins
In reply to: [Multi-column Tag Map] How To Display Both Blog Tags & Custom Taxonomies?I have custom taxonomies assigned to custom post types, which work fine if only specify one using
taxonmy="taxonmy_name", If i try multiple I get the same error as fafush.Is there anyway we can include two or more taxonomies as Gemma suggests?
taxonomy="taxonomy_name1, taxonomy_name2"Forum: Fixing WordPress
In reply to: index.php loop to display category specific posts onlysolved by buddah trance in another thread, yay
@ therizone – To have a page display one single category, the regular loop way, I have done it by creating a template and using the following
<?php if(have_posts()) : ?> <?php if (is_page()) { query_posts("cat=3"); } ?> <?php while(have_posts()) : the_post(); ?>For the home page, I think it would work with
if (is_home()) instead of if (is_page())
Forum: Fixing WordPress
In reply to: index.php loop to display category specific posts onlysolved by buddah trance in another thread, yay
@ therizone – To have a page display one single category, the regular loop way, I have done it by creating a template and using the following
<?php if(have_posts()) : ?>
<?php
if (is_page()) {
query_posts(“cat=3”);
}
?><?php while(have_posts()) : the_post(); ?>
For the home page, I think it would work with
if (is_home()) instead of if (is_page())
Forum: Fixing WordPress
In reply to: index.php loop to display category specific posts onlysolved, in another thread, by buddah trance
@ therizone – To have a page display one single category, the regular loop way, I have done it by creating a template and using the following
<?php if(have_posts()) : ?>
<?php
if (is_page()) {
query_posts(“cat=3”);
}
?><?php while(have_posts()) : the_post(); ?>
For the home page, I think it would work with
if (is_home()) instead of if (is_page())
Forum: Fixing WordPress
In reply to: including a category into a page.buddah trance, thanks mate!
it worked exactly what i wanted it for..
ohh thats a relief I tell you,
@ Zaphieonx, good luck with getting your problem solved!
Forum: Fixing WordPress
In reply to: including a category into a page.hmm that plugin is pretty nifty, but I’m not sure if that’s what Zaphieonx was looking for?
I am looking for something similar, I want to be able to mod the way the default posts are displayed on the index.php based on what category they are posted in.
Im not very great at php so I’m not sure if that link you posted can actually do that.
I had found some code posted a while back like this.
<?php if (is_category('home')) { query_posts("category_name=home&showposts=3"); ?> <h2>Recent Posts</h2> <ul> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php } ?>I cant seem to get it to work though.. can anybody help?
Forum: Fixing WordPress
In reply to: on page load – only show posts from specific categoryhello? does any body have any ideas?
thanks!
Forum: Fixing WordPress
In reply to: on page load – only show posts from specific categoryi found this code:
<?php if (is_category('home')) { query_posts("category_name=home&showposts=3"); ?> <h2>Recent Posts</h2> <ul> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <?php } ?>but when i paste it in place of
<div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="meta"><?php the_category(',') ?> <?php edit_post_link(__('edit')); ?></div> <div class="storycontent"> <?php the_content(__('(more...)')); ?> </div>I end up with a blank screen, any ideas?