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 »

Limit number of sticky posts on home page


 
Prev Previous Post   Next Post Next
  #1  
Old Jul 19, 2010, 01:30 PM
True
 
11 posts · Jul 2010
Cape Town, South Africa
Limit number of sticky posts on home page

Hi there,

I am busy working on my site and I want to be able to limit the amount of sticky posts shown on the homepage.

In other words, on the homepage, I want there to be the 4 most sticky posts and then the rest of the posts in date order below them. I want this only on the homepage (on on other pages the normal posts in date order must be shown).

I know I probably need to edit the loop. Can you please advise? This is what I currently have in the loop:

PHP Code:
<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Top'); ?>

<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<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 -->
Thanks for your time
 

Bookmarks

Tags
limit, loop, sticky, sticky-post

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit number of posts on home page? anishinaboy Page & Category Menu Bars 2 Jul 11, 2010 12:34 PM
How to limit number of posts displayed on home page rickinesc Atahualpa 3 Wordpress theme 2 Nov 14, 2009 02:14 PM
Limit number of posts when only showing one category bodger Atahualpa 3 Wordpress theme 3 Oct 8, 2009 11:27 AM
Limit the number of posts per page mcgiver058 Atahualpa 3 Wordpress theme 1 Aug 20, 2009 09:01 PM
Limit the number of Posts on Home Page coaxkid Post-Kicker, -Byline & -Footer 4 Apr 12, 2009 06:01 PM


All times are GMT -6. The time now is 08:17 AM.


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