WordPress.org

Ready to get started?Download WordPress

Forums

posts always the same in every page (2 posts)

  1. chitgoks
    Member
    Posted 4 years ago #

    hi. i believe that this is a wordpress theme problem because i tried the default theme and it shows 3 posts per page

    the current theme of this blog http://gbeth.chitgoks.com

    keeps showing 5 posts in every page (and the same 5 posts) even though the option was set to 3 posts per page.

    i tried to override it with some php code but it didnt work out. anyone got some ideas? thanks

  2. there is probably a custom query in index.php (or the template file that displays the front page) which is missing the 'paged' parameter;

    you could try and add this parameter to the query_posts code (if it exists) similar to the example below:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('cat=0&showposts=5&paged='.$paged);

    or you could paste the code of index.php into a http://wordpress.pastebin.com/ and post the link to it here; someone might have a look at it and might make some sugestions.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.