Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Blog Pages Show at Most Stuck WordPress

  • REFUNDED

My "blog pages show at most" is stuck on 12. Every time I change it to 6 and click "save", it reverts back to 12. I have been using Firefox's Firebug add-on to help me customize the site. When I select the "blog pages show at most" section using Firebug, this is what it gives me:

<td>
<input id="posts_per_page" class="small-text" type="text" value="12" name="posts_per_page">
posts
</td>


I have searched literally every file possible, including options-reading.php, index.php and single-post.php files and can not find this code to edit it.

My site is currently still in design mode but I have taken it off of maintenance mode so that you can check it out.

[[LINK href="http://thewahss.com"]]Website here[[/LINK]] - Right now the site can only be accessed in Firefox. We're still configuring it so that it works in IE.

Thanks!

Answers (2)

2011-08-13

Clifford P answers:

I checked out [[LINK href="http://thewahss.com/"]]http://thewahss.com/[[/LINK]] on Firefox and I'm not sure what section of the website you're referring to as "blog pages show at most". Have you changed the site since asking your question?


Shanae Dykes comments:

Please let me clarify a little bit more.

I want only blog 6 posts to show on at a time on a page but there are 12 showing.

When I go to Settings ---> Reading Settings in my Admin panel, then change my "blog pages show at most" option from 12 to 6, then click save, it doesn't save the settings. It reverts back to 12.

I use a Firefox add-on called Firebug. It allows me to hover over certain sections of my site and then it will provide me with the HTML coding for that section. This helps me to find the coding and customize that section. I use this because I have very limited coding experience.

When I hovered over the "blog pages show at most" section within my Admin panel, it provides me with the code that I placed above; however, I can not find this coding anywhere within PHP files.

I need to find this coding so that I can change the "12" to "6".

Here is an example: http://thewahss.com/category/supplemental-jobs

If you notice this page is showing 12 posts.. but I want it to only show 6.

Hope that makes more sense. Thanks!


Clifford P comments:

I understand now. I agree with Jens Filipsson that this is not default WordPress behavior. The default is 10; yours has 12; and it won't let you change it to 6.

I know what Firebug is, and it's a good tool whether you have a lot or a little coding experience.

If you don't want to look into coding, switch your theme and see if you can then change the number to 6. Then, if you can, switch your theme back to the one you're using now and tell us what you see again.

2011-08-13

Jens Filipsson answers:

It might be your theme blocking the option to change this. Look in the file functions.php in your theme folder. You might need to remove the function from there.


Shanae Dykes comments:

This is the only thing in my functions.php theme file:

<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));

?>


From my understanding this is saying that its in the options-reading.php file, right? I have searched that file and can not find anything. I'm thinking I may just have to leave it as is :(

<body class="wp-admin js options-reading-php branch-3-2 version-3-2-1 admin-color-fresh">
<script type="text/javascript">
<div id="wpwrap">
<div id="adminmenuback"></div>
<div id="adminmenuwrap">
<div id="wpcontent">
<div id="wphead">
<div id="wpbody">
<div id="wpbody-content">
<div id="screen-meta">
<div class="wrap">
<div id="icon-options-general" class="icon32">
<h2>Reading Settings</h2>
<form action="options.php" method="post" name="form1">
<input type="hidden" value="reading" name="option_page">
<input type="hidden" value="update" name="action">
<input id="_wpnonce" type="hidden" value="12f4f6360a" name="_wpnonce">
<input type="hidden" value="/wp-admin/options-reading.php" name="_wp_http_referer">
<table class="form-table">
<tbody>
<tr valign="top">
<tr valign="top">
<th scope="row">
<td>
<strong><input id="posts_per_page" class="small-text" type="text" value="12" name="posts_per_page"></strong>
posts


Jens Filipsson comments:

What happens if you change value to 6 in the code at the end?

<input id="posts_per_page" class="small-text" type="text" value="12" name="posts_per_page">


Otherwise, check options.php or options-reading.php...