Support » Fixing WordPress » forbidden 403… trying to alter number of posts per page

  • hello
    i wish to alter the number of posts per page… and so change the settings… simple… BUT:

    instead of changing the settings I get a forbidden 403!?

    it used to work before i upgraded to the 2.8.6…. so i wondered what i should change (if anything) in order to be able to continue my ‘tweeking’.
    May I continue to tweek in 2.8.6? 😮

    cheers
    stephenn

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems?

    – resetting any custom permalinks back to the default setting?

    Thread Starter stephenn

    (@stephenn)

    hi esmi
    thanks for thoughts. have been through each of your suggestions but unfortunately they dont cure/allow the admin change.

    This is the line it says on the page:
    “You don’t have permission to access /mykblogs/wp-admin/options.php on this server”

    there is nowhere on the page to ask… why not! and… says who!
    o)

    See if http://wordpress.org/support/topic/236973 offers any solutions.

    Thread Starter stephenn

    (@stephenn)

    thanks for link… I am exploring the options in it for a possible solution…

    … meantime…

    … where can i find the file that stores the ‘number’ that i choose for ‘posts-per-page’, so i can alter it via txt editor and ftp?
    (the admin page is wp-admin/options-reading.php), but where, what folder/page, is the actual chosen ‘number’ stored… so i can change it manually?

    cheers for thoughts/knowledge on this

    When you say “change it manually”, do you want to change on on specific pages? If so, adding:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'posts_per_page' => 6,
    	'paged' => $paged
    );
    query_posts($args);
    ?>

    just above the start of the Loop would result in 6 posts on any page that used that template. The value in Admin/Settings/Reading is storied in the wp-options table of the db.

    Thread Starter stephenn

    (@stephenn)

    thanks esmi.
    your first bit very interesting (maybe for future ideas) but for now just a simple ”change the number” option was sort…

    … which you have helped with in your last bit of info… the wp-options in the db…
    I accessed this through PHPmyAdmin and changed from it from 6 to 7 (my choice), then when i returned to my blogs’ admin panel, it was showing as if I had done the change there… SORTED!

    Thanks for thinking on that one….

    … I will continue my mission to find out why I get the FORBIDDEN page when I try it as usual, in admin.
    (I have updated now to the 2.9 to see if that ressolves… but no, unfortunately).

    … onwards!
    cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘forbidden 403… trying to alter number of posts per page’ is closed to new replies.