WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Varying show-post number between views (6 posts)

  1. masonchumpia
    Member
    Posted 9 years ago #

    I'm trying to achieve the following setup: index view shows most recent 1 entry, while category view shows the excerpts of the most recent 10 entries. Can this be achieved by plugin or option configuration?

  2. skippy
    Member
    Posted 9 years ago #

    Yes, you can do what you want.

    The Loop In Action includes an example of a Different Archive Format. That, plus the Creating an Archive Index tutorial, should help you make the changes you need.

    The Loop: Multiple Loops might help, too.

  3. masonchumpia
    Member
    Posted 9 years ago #

    No matter how I format the archive.php, it looks like I will still be limited to showing 1 post per page no matter what template is being viewed. Is it necessary to employ a secondary loop? I'm not very experienced with PHP, so I'm not sure I'd be able to whip something up to make calls to the database and what have you.

  4. iand
    Member
    Posted 9 years ago #

    Take a look at the following plugin:
    http://rephrase.net/miscellany/05/perpage.phps
    sounds like it might do what you need.

  5. moshu
    Member
    Posted 9 years ago #

    Here is another plugin to accomplish this:
    http://mattread.com/archives/2005/03/custom-query-string-plugin/

  6. masonchumpia
    Member
    Posted 9 years ago #

    Awesome! IanD's solution worked. I'll explore Matt's solution if I need additonal functionality. Thanks for all your help, guys!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.