Forums

Show more posts in archive than set in the reading settings (4 posts)

  1. shafiulalamchowdhury
    Member
    Posted 5 months ago #

    Hello there!

    I run a website which needs exactly one post everywhere. That is why I had to set the post per page to 1 from the settings>reading. But I need to show all the posts of a month in archive pages. Can anyone help me ?

    For example:
    when i visit: http://example.com i need to see only one post.
    but when i visit http://example.com/2011/12 (that is archive) I need to see all the posts made in December 2011.

    Please help. I need it ASAP

    Thanks in advance.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Change the posts per page to a higher number, and then make a special front-page.php file in your theme to only pull in ONE post.

  3. shafiulalamchowdhury
    Member
    Posted 5 months ago #

    Well, thanks for the help. But the problem is, I need one posts for every where except the archive page.

    That is, if someone opens a category, s/he will see only one post. but when in archive page, s/he'll see all the posts of that month... hope that explains everything

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    So you want the domain.com/category/catname to show ONE post? If that's the case, change the date.php file in your theme

    Read http://codex.wordpress.org/Template_Hierarchy - you can customize any archive however you want.

Reply

You must log in to post.

About this Topic