uspinnak
Forum Replies Created
-
Forum: Themes and Templates
In reply to: use &showposts=x with have_postsTo do that I would need to make multiple page templates there is no way to do it with a category page?
Forum: Themes and Templates
In reply to: PhP Call categories for archivesSorry about that. I will make sure to use that next time. That did work for me I just need to edit it now for my layout thanks.
Forum: Themes and Templates
In reply to: PhP Call categories for archivesI tried that and it still pulls content from all categories instead of just one. I am missing something?
<?php get_header(); ?> <div class="breadcrumb"> <?php if(function_exists('bcn_display')) { bcn_display(); } ?> </div> <div id="content"> <div class="minipost"> <?php if (have_posts()) : query_posts('posts_per_page=12') ?> <?php while (have_posts() && $postNumber < 6) : the_post();$do_not_duplicate = $post->ID ?> <div class="hentry"> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php $screen = get_post_meta($post->ID,'screen', true); ?> <img src="<?php echo ($screen); ?>" width="310" height="100" alt="" /> <?php the_excerpt(); ?> </div> <div class="meta"> <div class="timer"><?php the_time('j F Y') ?></div> <div class="more"> <a href="<?php the_permalink() ?>">Read More</a></div> </div> <?php $postNumber++; endwhile; ?> </div> <div class="minipost"> <?php while (have_posts() && $postNumber < 12) : the_post();$do_not_duplicate = $post->ID; ?> <div class="hentry"> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php $screen = get_post_meta($post->ID,'screen', true); ?> <img src="<?php echo ($screen); ?>" width="310" height="100" alt="" /> <?php the_excerpt(); ?> </div> <div class="meta"> <div class="timer"><?php the_time('j F Y') ?></div> <div class="more"> <a href="<?php the_permalink() ?>">Read More</a></div> </div> <?php $postNumber++; endwhile; endif; ?> </div> <div class="navigation"> <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?> </div> </div> <?php get_sidebar(); ?> <div class="clear"></div> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: PhP Call categories for archivesThat code is from archive.php. I do not have a category.php. If I create one how would I link to it rather then the archives page.
Forum: Themes and Templates
In reply to: PhP Call HelpThanks for that help I didn’t even think of that. I modified it a little bit to try and get the call to pull one category per category page instead of information from all the most recent posts. I changed the code to this assuming that it would just pull directly from category information.
if (have_posts()) : query_posts('posts_per_page=12'); while (have_posts() && $postNumber < 6) : the_post();$do_not_duplicate = $post->ID; ?>