GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WordPress Question (https://gfy.com/showthread.php?t=678757)

Mutt 11-19-2006 05:12 AM

WordPress Question
 
where can I set how many blog entries per page I want displayed in WP?

thanks

marko13 11-19-2006 05:17 AM

options>reading> first one...

beta-tester 11-19-2006 05:18 AM

Options>Reading>Show at most: xx posts

Mutt 11-19-2006 05:25 AM

thanks - i was lazy - found it.

SlamDesigns 11-19-2006 05:26 AM

What they said. lol. You can also set how many posts you want to display in your feed from that same page, I believe.

marko13 11-19-2006 05:34 AM

Quote:

Originally Posted by Mutt (Post 11345505)
thanks - i was lazy - found it.

no problemos...

jayeff 11-19-2006 06:14 AM

And if you want to over-ride the global setting, you can also place this on the line immediately before the beginning of "The Loop":
Code:

<?php if (is_home()) { query_posts('showposts=10'); } ?>
...changing "home" for whatever page(s) you want to have specific settings and the showposts parameter for whatever number you want.

SlamDesigns 11-19-2006 06:16 AM

Quote:

Originally Posted by jayeff (Post 11345696)
And if you want to over-ride the global setting, you can also place this on the line immediately before the beginning of "The Loop":
Code:

<?php if (is_home()) { query_posts('showposts=10'); } ?>
...changing "home" for whatever page(s) you want to have specific settings and the showposts parameter for whatever number you want.

Why would you want to do that? Not questioning you on it...just wanting to know the advantages to doing that.

jayeff 11-19-2006 06:38 AM

Quote:

Originally Posted by SlamDesigns (Post 11345704)
Why would you want to do that? Not questioning you on it...just wanting to know the advantages to doing that.

Okay, here is one possibility...

Surfers like to quickly scan a page before choosing what to read in depth. It is therefore a good idea to make that easy for them, so rather than having full posts on main and archive pages, show them summaries.

WordPress has an "excerpt" feature, but it only pulls out a certain number of words from the beginning of a post. More useful for the above-mentioned summaries is the optional "extract" box into which you can write a concise but informative summary of a post.

Whichever method you choose, you could decide to show, say, 10 such summaries on your main page to make it fast loading and easy to scan, but - because by selecting a category or archive the surfer has indicated a more specific interest - allow 20 summaries to display on category and archive pages.

And another...

Perhaps you let full posts show on your category and archive pages, in which case you might want to have a global setting of 5 posts or less. But good usability practise suggests that your main page would be better with at most a single post and/or a longer list of summaries. Once again the over-ride is useful.

Brujah 11-19-2006 06:47 AM

Quote:

Originally Posted by SlamDesigns (Post 11345704)
Why would you want to do that? Not questioning you on it...just wanting to know the advantages to doing that.

query_posts is also useful if you want to exclude a category, or if you only want the front page to use a specific category, etc.. very useful. Was just learning this myself. I should've known to ask jayeff first.. and not have wasted so much time researching it myself.


All times are GMT -7. The time now is 11:58 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123