• Resolved Phartog

    (@phartog)


    I made a website a while back with wordpress. I have a homepage https://www.humanistaidindia.org where I want to show a maximum of 4 posts. I don’t know how to get this to work. I changed the number of posts to show to 4, but it didn’t change anything. I used this code to show the posts, is this correct, what do I have to change, to change the number of posts that are showed?

    <div id="recentnews">
    
    		<h2>News</h2>
    
    		<div id="border">
    
    			<?php if (have_posts()) : ?>
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<div id="homepost">
    
    						<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    						<?php the_title(); ?></a><br />
    						<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    						<div class="recentnewsentry">
    							<?php the_content('Read more &raquo;'); ?>
    						</div>
    
    					</div>
    
    				<?php endwhile; ?>
    
    			<?php endif; ?>
    
    		</div>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘number of posts’ is closed to new replies.