Title: 's Replies | WordPress.org

---

# sumitr

  [  ](https://wordpress.org/support/users/sumitr/)

 *   [Profile](https://wordpress.org/support/users/sumitr/)
 *   [Topics Started](https://wordpress.org/support/users/sumitr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sumitr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sumitr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sumitr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sumitr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sumitr/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [New Page that works just like the index page](https://wordpress.org/support/topic/new-page-that-works-just-like-the-index-page/)
 *  [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/new-page-that-works-just-like-the-index-page/#post-239397)
 * Thanks. Got it working now
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [New Page that works just like the index page](https://wordpress.org/support/topic/new-page-that-works-just-like-the-index-page/)
 *  [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/new-page-that-works-just-like-the-index-page/#post-239386)
 * miklb: I am a newbie. Could you elaborate more on this.
    “Pages will allow for
   commenting, you will just need to be sure the template provides for it”
 * I am using the default theme and still my pages does not allow for commenting(
   I checked “Allow Comments” in the admin panel)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Tweaking WordPress for personal website](https://wordpress.org/support/topic/tweaking-wordpress-for-personal-website/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/tweaking-wordpress-for-personal-website/#post-238353)
 * I will give a simple example to explain why I need this
 * Suppose I divide all my content into 10 blocks – C1,C2 … C10
 * Now I want to display these content on three pages such that
    page 1 contains
   C1,C2,C3 page 2 contains C4,C5,C6 and page 3 contains C7,C8,C9,C10 and page 3
   is password protected
 * Using Post
    ————– The only way I could figure out to do this is to have all C1…
   C10 as individual posts and three categories page1, page2, page2. So while creating
   the post I can assign them to appropriate category. The problem occurs with the
   password protected page. A user has to type in password for each of C7, C8,C9,
   C10 to see the page completely
 * Using Pages
    —————- I don’t know if there is a way to do the same with Page (
   post_status=”static”). I was wondering if I can do the same with pages so my 
   previous question of iterating over pages.
 * Q1: Is there a better way to do it?
 * Q2: However if it is possible to password protect categories too, then the above
   would be quite easy. I see there isn’t any such field in wp_categories. Any pointers
   to where in the code should I look around to add this functionality?
 * Q3: Is it possible to iterate over all the posts from within a Page (static page)
   i.e database entries with post_status=publish? It seems that when one click on
   the any static page link eventually wp-blog-header.php is invoked with a page_id
   =<number> argument that restricts the result of the sql query by adding the appropriate
   where clause.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Tweaking WordPress for personal website](https://wordpress.org/support/topic/tweaking-wordpress-for-personal-website/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/tweaking-wordpress-for-personal-website/#post-238273)
 * Hi
    I read all the links that you suggested. Let me ask specific question as 
   I think that would be quicker.
 * Does the look in page.php ever go beyond one iteration. For e.g my page.php has
   these lines
 *  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h2 id=”post-
   <?php the_ID(); ?>”> <?php endwhile; endif; ?>
 * Could there be a case when <h2 id=”post-<?php the_ID(); ?>”> is executed twice
   i.e. the loop iterates more than one. ( For posts it does but will it ever iterate
   for “Pages”
 * Thanks,
    Sumit
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks don’t work](https://wordpress.org/support/topic/permalinks-dont-work-1-2/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/permalinks-dont-work-1-2/#post-238241)
 * I tried the above structure: /%year%/%monthnum%/%day%/%postname%/
    and category
   base as blank
 * I then created a new post and tried to view it and again got the same error.
 * (I changed my httpd.conf (to allow override) and restarted both mysld and httpd)
 * Once I set the structure to blank in permalinks all my posts and page become 
   accesible.
 * Thanks,
    Sumit
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/#post-232221)
 * Solved.
    I don’t know what the problem was but I uninstalled mysql and reinstalled
   it and worked.
 * Thanks
    Sumit
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/#post-232062)
 * The previous post was the result of ver 1.5.3 .
 * I checked my config file. The setting are correct
 * define(‘DB_NAME’, ‘blog’); // The name of the database
    define(‘DB_USER’, ‘blog’);//
   Your MySQL username define(‘DB_PASSWORD’, ”); // …and password define(‘DB_HOST’,‘
   localhost’); // 99% chance you won’t need to change this value
 * If you see my previous mail, it contains output of some commands that verifies
   that the setting are correct.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/)
 *  Thread Starter [sumitr](https://wordpress.org/support/users/sumitr/)
 * (@sumitr)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-1-2-3-4-5-6-7-8-9-10-11-12-13-14-2/#post-232046)
 * I did a fresh install. Version 1.5.3

Viewing 8 replies - 1 through 8 (of 8 total)