Where to find the LOOP in index.php?
-
Where is the LOOP in the index.php file?
I’m trying to limit the posts on the FRONT page only, why that category is still X amount of posts.
“If you want this on JUST the home page, try adding this:
<?php //new query to limit number of posts $wp_query = new WP_Query(); $wp_query->query($query_string."&posts_per_page=2&paged=".$paged); ?>
to index.php, just before the loop.”
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Where to find the LOOP in index.php?’ is closed to new replies.