sumitr
Forum Replies Created
-
Forum: Installing WordPress
In reply to: New Page that works just like the index pageThanks. Got it working now
Forum: Installing WordPress
In reply to: New Page that works just like the index pagemiklb: 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
In reply to: Tweaking WordPress for personal websiteI 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 protectedUsing 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 completelyUsing 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
In reply to: Tweaking WordPress for personal websiteHi
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,
SumitForum: Fixing WordPress
In reply to: Permalinks don’t workI tried the above structure: /%year%/%monthnum%/%day%/%postname%/
and category base as blankI 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,
SumitForum: Installing WordPress
In reply to: Error establishing a database connectionSolved.
I don’t know what the problem was but I uninstalled mysql and reinstalled it and worked.Thanks
SumitForum: Installing WordPress
In reply to: Error establishing a database connectionThe 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 valueIf you see my previous mail, it contains output of some commands that verifies that the setting are correct.
Forum: Installing WordPress
In reply to: Error establishing a database connectionI did a fresh install. Version 1.5.3