WordPress.org

Ready to get started?Download WordPress

Forums

Paged index template (4 posts)

  1. Lista155
    Member
    Posted 6 years ago #

    Hi,

    this is what I'm trying to do:

    While I need to have 10 latest entries to show on archive and category pages, I need to show only the latest post on the index page. However, when following the 'Previous posts' from the index page (and you get into the 'paged' part), I would again need 10 posts, not only one.

    So I'm trying to find a way to separate the 'main' and 'paged' index view, if you understand what I'm trying to say.

    Of course, if I'm doing this completely wrong, I'd be very glad to hear any advices.

    Thank you!

  2. Lista155
    Member
    Posted 6 years ago #

    Hi again,

    I was just wondering what's the reason behind no answers until now? Is the question not clear enough, or have I asked something trivial, or is it a third thing?

    Thank you!

  3. moshu
    Member
    Posted 6 years ago #

    Try this:
    http://www.transycan.net/blogtest/2007/10/30/custom-query-string-reloaded-for-wordpress-23-with-tag-support/

    EDIT. Moved to How-To... nothing advanced here, just applying a plugin.

  4. Lista155
    Member
    Posted 6 years ago #

    Hi,

    thank you for your answer! I'll have a look, but in the meantime I've managed to do it this way:

    This piece of code will return the number of page you're on, and if you're not on a page, it will return nothing.

    $paged = get_query_var('paged');

    Therefor, using that and a couple of if loops I've managed to get different looks for paged and non-paged apeareance.

Topic Closed

This topic has been closed to new replies.

About this Topic