• Resolved heller247

    (@heller247)


    Hey Guys,

    im trying to set up a blog which has posts like a portfolio and on the left a stream for regular newsposts and tweets. Is this possible? maybe a dump question sry.

    if its possible how can i make it ? is there a plugin of even something easier like just add a section post tab somewhere?

    thanks!

    edit: or if it isnt possible can i seperate the posts with catergories into two different styles?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Is this possible?

    If you use categories for your posts, yes – it is possible but would need some fairly advanced theme editing to pull off.

    can i seperate the posts with catergories into two different styles?

    On a single page or when you view the category pages? If it’s the latter, yes, you can do this using Category Templates. Displaying multiple post styles on a single listing/archive page would require more theme editing.

    Thread Starter heller247

    (@heller247)

    thanks for the reply!

    so lets say i just do my news and stuff with the postthing. and is there a way to edit also in the backend a portfolio? seperatly via a plugin or so?
    see for example at bigspaceship.com
    they got a news stream and a portfolio? you might know how they did it?

    You could use Pages and child Pages for your portfolio.

    Thread Starter heller247

    (@heller247)

    ok i did it now with the category thing.with this tutorial works almost fine expect of:

    now i have two loops. before the first loop iam asking just to show a certain categorie and on the second loop i also ask just to show another categorie. it works but when i enter the second query my comments vanishes…

    doesnt make any sense to me. any clues?

    first query and loop on index site:

    <?php query_posts('cat=3&showposts=10'); ?>  //CATEGORY QUERY
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      			<div class="post" id="post-<?php the_ID(); ?>">
    
    <!-- thumbnail wrapper -->
    <div class="thumb main">
    
    <!-- 235150image-covers -->
    <?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" /></a>
    <!-- 235150image end -->
    
    <!-- thumbanil title -->
    <div class="thumb-title">
    <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?>
     <?php comments_number('{0}', '{1}', '{%}' );?></a></h2>
    </div>
    <!-- thumbanil title end -->
    
      			</div>
      			</div>
      		  <?php endwhile; ?>
    
      		  <?php else : ?>
      		  <div class="post single">
        			<h2>No matching results</h2>
        			<div class="entry">
        				<p>You seem to have found a mis-linked page or search query with no associated or related results.</p>
        			</div>
        		</div>
      		<?php endif; ?>

    second query and loop on right collumm site:

    <?php query_posts('cat=3&showposts=10'); ?>//CATEGORY QUERY
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      			<div class="post" id="post-<?php the_ID(); ?>">
    
    <div class="Newsmain">
    <div class="NewsTitle"><h5><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></div><div class="postMeta"><span class="comments"><a href="#comments"><?php comments_number('No comments', '1 comment', '% comments' );?></a></span><span class="date"> // <?php the_time('M jS, Y') ?> // <?php the_category(', ') ?></span></div></div></div>
      		  <?php endwhile; ?>
    
      		  <?php else : ?>
      		  <div class="post single">
        			<h2>No matching results</h2>
        			<div class="entry">
        				<p>You seem to have found a mis-linked page or search query with no associated or related results.</p>
        			</div>
        		</div>
      		<?php endif; ?>
    Thread Starter heller247

    (@heller247)

    ok managed it with this query

    <?php $my_query = new WP_Query('category_name=featured&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?>

    dont know why but now the comments are shown

    thanks esmi

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blog with two blogstreams inside possible?’ is closed to new replies.