Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Trying to modify the loop


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 23, 2009, 01:01 PM
sspeedy
 
7 posts · Aug 2009
Help Trying to modify the loop

Hey everyone,

I'm reading the codex regarding the loop and while I think I understand the code examples there, I'm having a hard time integrating it with this theme.

Currently I'm using the same loop but I need it to be modified so that it displays 5 posts from each of these categories: featured post, news, deals.

Here is the default code, can someone help me modify it to what I need it to be? TIA.

Code:
<?php /* Post Container starts here */ if ( function_exists('post_class') ) { ?>
	<?php query_posts('category_name=Deals&showposts=1'); ?>
 
	<div <?php if ( is_page() ) { post_class('post'); } else { post_class("$odd_or_even"); } ?> id="post-<?php the_ID(); ?>">
	<?php } else { ?>
	<div class="<?php echo ( is_page() ? 'page ' : '' ) . $odd_or_even . ' post" id="post-'; the_ID(); ?>">
	<?php } ?> <?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> 
	<?php bfa_post_headline('<div class="post-headline">','</div>'); ?> 
	<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
	<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
	<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>	 
	<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>

	</div><!-- / Post -->
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: Cannot modify header information - headers already sent by ... bruno-d-horse New Versions, & Updating 5 Mar 31, 2010 02:29 AM
Only Pages in the loop sumochill Excerpts, Read more, Pagination 1 Aug 13, 2009 09:52 AM
How to modify the links below each post on the homepage ? ( Date, tags , Leave a com. 3ukman Header configuration & styling 5 Jul 10, 2009 11:05 AM
Warning: Cannot modify header information - headers already sent by Stepien Header configuration & styling 4 May 8, 2009 07:50 AM
Modify H1 Headline for SEO idg Post-Kicker, -Byline & -Footer 12 May 4, 2009 10:05 PM


All times are GMT -6. The time now is 07:50 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.