How to Display Wordpress Limiting Posts Per Page

WordPress web design tutorial

SoftwareLinkers provide best wordpress web design and tutorial. Here I find a wordpress query which display wordpress limiting posts on per page. You can try it on you blog or website.
Copy this wordpress query and paste into your index.php file.

Display WordPress Limiting Posts Per Page With Featured Image:

[code language=”php”]





[/code]

Display WordPress Related Posts Per Page Without Featured Image:

[code language=”php”]

if( $related ) foreach( $related as $post ) {
setup_postdata($post); ?>


 

[/code]

Display WordPress All Posts with limited Per Page Without Featured Image:

[code language=”php”]

// Set up the paged variable
$paged = ( isset( $_GET[‘pg’] ) && intval( $_GET[‘pg’] ) > 0 )? intval( $_GET[‘pg’] ) : 1;
query_posts( array( ‘post_type’ => ‘post’, ‘paged’ => $paged, ‘posts_per_page’ => 1 ) );

?>

>



Not Found

Sorry, but there are no more posts here… Please try going back to the main page

 

[/code]

Display Featured Images of WordPress:

[code language=”php”]

 

[/code]