<?php
$rand_posts = get_posts(‘numberposts=10&orderby=rand’);
foreach( $rand_posts as $post ) :
?>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>
	
wordpress display random articles
Related Articles
wordpress set up pseudo-static and 301 redirection
Everyone knows that it is relatively easy to implement pseudo-static and 301 redirection on Linux hosts. If you are using a Linux host, when setting up a fixed connection, the WordPress backend will automatically add the following function to the...
				
				
		
	
		0
	
		0
	
		2
	
	
			How to Add CAPTCHA on WordPress
Follow the simple steps outlined below to easily add captcha to your WordPress installation: Step 1:  Using your credentials (the user must have admin access) login to your WordPress admin panel. Step 2:  In the Dashboard, select “Plugins” and then...
				
				
		
	
		0
	
		0
	
		4
	
	
			WordPress next post / previous post on the same category
<?php $current_category=get_the_category(); $prev_post = get_previous_post($current_category,”); $next_post = get_next_post($current_category,”); ?> <div class=”previous_post_link fl”> <?php if (!empty( $prev_post )): ?> <a href=”<?php%20echo%20get_permalink(%20$prev_post->ID%20);%20?>”><?php echo get_the_post_thumbnail( $prev_post->ID, ”, ” ); ?></a> Pre: <a href=”<?php%20echo%20get_permalink(%20$prev_post->ID%20);%20?>”><?php echo $prev_post->post_title; ?></a> <?php endif; ?> </div> <div class=”next_post_link fr”>...
				
				
		
	
		0
	
		0
	
		15
	
	
			WordPress-Installing WordPress Locally
Installing WordPress locally is a great way to test themes, plugins, or develop a site without affecting a live server. Here’s a step-by-step guide to setting up WordPress on your local machine: 1. Choose a Local Server Environment You need...
				
				
		
	
		0
	
		0
	
		8
	
	
			
Comments (0)