Limiting Numbers of Posts in WordPress

I have been customizing wordpress, I stuck around the problem for Limiting Number Of Posts per page. After digging into the code I found the tables wp_options which allows setting of wordpress.

This table has columns option_name and option_value. I change the option_value for the post_per_page to number of want to limit my post.

You can see the details for this row by running query below

SELECT *
FROM `wp_options`
WHERE option_name = ‘posts_per_page’
LIMIT 0 , 30

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: