Support » Installing WordPress » Blog pages show at most – hardcoded to 15?

  • Resolved angrywarrior

    (@angrywarrior)


    I’m trying to change it to 25 – but it jumps back to 15 all the time when i save tghe new setting.

    Is WP hardcoded to only allow 15 entries?

    Is there a work around/a way to get around this with to much hazzle?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    First, to rule out any theme-specific issue, try switching to the unedited default theme for a moment using the WP dashboard (WITH ALL plugins disabled). If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    If that that does not help, remove any post per page limit:

    WordPress uses the first Template file it finds in your current Theme’s directory from the following list.
    1.category.php
    2.archive.php
    3.index.php

    So, the easiest way to change the amount of posts per page shown for categories, is to do the following:
    •Either edit your category.php file, or if it doesn’t exist, copy your index.php file to category.php.
    •look for this line:
    < ?php get_header(); ?>
    and change it to the following:
    < ?php get_header(); query_posts( ‘posts_per_page=-1&cat=’ . $cat ) ?>
    •That’s all, your finished. The -1 in posts_per_page lets WordPress know you want all posts to be shown and it overrides the setting in your options.

    Thread Starter angrywarrior

    (@angrywarrior)

    Awesome!

    That worked like a charm.

    THANK YOU! 🙂

    Have a great day

    Kind regards
    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog pages show at most – hardcoded to 15?’ is closed to new replies.