/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
$sticky = get_option( ’sticky_posts’ );
query_posts( array( ‘post__in’ => $sticky, ‘caller_get_posts’ => 1, ‘orderby’ => ID, ’showposts’ => 2 ) );
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<a href=â€<?php the_permalink(); ?>†rel=â€bookmark†title=â€Permanent Link to <?php the_title(); ?>â€>
<?php endwhile;?>
<?php endif; ?>
<?php $sticky = get_option(’sticky_posts’) ;
$post_to_exclude[] = $sticky[0];
‘caller_get_posts’=>1,
’showposts’=>2,
‘post__not_in’=> $post_to_exclude,
);
query_posts($args); ?>
<h2><a href=â€<?php the_permalink() ?>â€><?php the_title(); ?></a> </h2>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile;?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                