I must alter the default behavior of Wordpress regarding the amount of articles shown on a same page to become the next :

  • when exhibiting the house page, the ten newest articles ought to be displayed, 10 being the setting which may be transformed with the admin panel (posts_per_page)
  • when exhibiting the articles of the specific month (given with the URL such as this : ?m=200906&order=ASC, Let me display on a single page all articles of the month (quite simply, I'd rather not need to search through articles using previous records or next records.

EDIT : I didn't remember another thing Let me change :

Around the page where all articles from the specified month are displayed, I must display your comments ought to for every article.

Is easy to do ? How ?

inside your archive.php, add this on the top of the template:

$allowedOrder = array('ASC', 'DESC');
if(isset($_GET['m'])){
   $order = isset($_GET['order']) ? (in_array($_GET['order'], $allowedOrder) ? $_GET['order'] : $allowedOrder[0]) : $allowedOrder[0];
   $m = $_GET['m'];
   $y = substr($m, 0, 4);
   $m = substr($m, -2);
   $query = "posts_per_page=-1&year=$y&monthnum=$m&order=$order";
   query_posts($query);
 }

Or, if you've just got one large index.php template file, do that:

$allowedOrder = array('ASC', 'DESC');
if(is_month()){
   $order = isset($_GET['order']) ? (in_array($_GET['order'], $allowedOrder) ? $_GET['order'] : $allowedOrder[0]) : $allowedOrder[0];
   $m = $_GET['m'];
   $y = substr($m, 0, 4);
   $m = substr($m, -2);
   $query = "posts_per_page=-1&year=$y&monthnum=$m&order=$order";
   query_posts($query);
}

For additional detail, take a look at codex page:

You are able to most likely do that using query_publish should you consider the codex page it offers a superior particulars of methods to get this done:

http://codex.wordpress.org/Template_Tags/query_posts

Take a look at WP_query also you will find some variations between query_posts and WP_query. Both are utilized to create queries for custom loop. If you would like better treatments for query use WP_query.

  1. http://codex.wordpress.org/Custom_Queries
  2. http://codex.wordpress.org/Function_Reference/WP_Query
  3. http://codex.wordpress.org/Template_Tags/query_posts