• Resolved t3ch33

    (@t3ch33)


    How can I show 10 posts on the front page, but after the user clicks the next/previous link, only 5 posts are shown? I prefer the actual code and not a plugin. But, if there is a plugin, I will accept that, too. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter t3ch33

    (@t3ch33)

    Does anyone have any experience in this area?

    there is a plugin called “Custom Query String” that i use that i think will also do this.

    you can also make a home.php template that is like your index.php template but then using the “Custom Query String” plug-in and set the posts on home.php to 8 and then the post on index.php to 6 or whatever. When someone goes to you site wordpress will look for the home.php for the front blog page and index.php for the next pages.

    Good luck, that is a start

    When someone goes to you site wordpress will look for the home.php for the front blog page and index.php for the next pages.

    That’s a false statement. If you have a home.php template file (which you should NOT in the latest versions!) that ALWAYS overrides the index.php.
    mdstidham, you should learn about the Template_Hierarchy before making misleading statements.

    If somebody prefers code instead of a plugin – should be able to write it or, at least, to search for it. The keyword is “is_paged”.

    My mistake, yeah i have never used the home.php but i did scan through that template hierarchy page a few days ago. I thought it just referred to the first home page but good to know it replaces the whole index.php

    is_paged options are included within that plug-in so i think you should be good. good luck to you t3ch33

    Thread Starter t3ch33

    (@t3ch33)

    Thanks. But, the reason my code wasn’t working with wordpress’s in the first place, is bc I forgot to copy a file to the wordpress directory. So, my original code from my old site is working the way I want it to.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show 10 posts on the front page, but 5 posts on others’ is closed to new replies.