Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • therizone

    (@therizone)

    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"

    Thread Starter therizone

    (@therizone)

    solved 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())

    Thread Starter therizone

    (@therizone)

    solved 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())

    Thread Starter therizone

    (@therizone)

    solved, 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())

    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!

    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?

    Thread Starter therizone

    (@therizone)

    hello? does any body have any ideas?

    thanks!

    Thread Starter therizone

    (@therizone)

    i 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(',') ?>&nbsp;<?php edit_post_link(__('edit')); ?></div>
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    	</div>

    I end up with a blank screen, any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)