Support » Your WordPress » Three pages different post

  • Ok I’ve three pages on my site. Now I want that whenever I post some text. It should not always post @ first page. It should be post on relevant page. How can I do that ? Also there is no option for comments except first page. Please tell me how can I turn comments on on other pages.

Viewing 10 replies - 1 through 10 (of 10 total)
  • How can I do that ?

    You cannot. Pages are not for displaying posts.

    You use categories to group your posts.

    Ok. got it. Whenever I write page I don’t get comment option there.

    Usually, nobody wants comment on a Page like Contact, or About US etc. therefore the majority of theme designers don’t call the comments template into the page.php (default) Page Template.
    Check how it is done in index and/or single.php and edit your PAge template(s).

    Ok great thanks. I will changed this post resolved when I get this done. Thanks for helping. Thank you very much.

    I got that function but where should I add that function ? I’ve page named Blog. Please tell me.

    Why do you have a Page named blog? What do you want to do with it?
    Your “blog” is on the main page.

    hehe :). Well the purpose of that page is to add writing of other people. 🙂 Sorry I’m bothering you but I need to get this done.

    No, it just doesn’t make sense and it is misleading for your visitors.

    Ok.

    Having two different posting pages is pretty simple. I’m not the best at explaining things, but it isn’t very hard at all.

    Now, when you write a post, you get to choose a category to put it under. Lets say you write a post and you want to put it under the category,

    My Category 1,

    Well, if you go to your wordpress website and type in

    http://www.-YOUR-DOMAIN-.com?cat=3

    or

    http://www.-YOUR-DOMAIN-.com/category/My-Category-1

    depending upon how you have your permalinks setup under the admin setting, (you can also just go to your post page, and normally the post will say something like this: posted under My Category 1.),

    you will see all the posts for that specific category. So every post you write will show up in that category archive.

    So what we want to do now is have that archive page to be the other page for posting post. So just edit the navigation bar in the header.php, and get rid of the php that makes pages show up automatically and do it manually. This isn’t hard if you know what you’re doing. Also, remove the h2 files in the achive.php page just to make the archive page look like a real page, and not an archive page. Normally the h2 tag with read: Archive for My Category 1.

    Now, You have done it. You have two post pages. Your regular post page, and your archive page that is blended in to look just like a regular wordpress post page.

    But we still have every thing that shows up on the My Category 1 page, on your other post page.

    Here’s how to fix that.

    in the main index template (index.php), look for the php code for the post. And right after the loop, which looks something like this:

    <?php
    if ( have_posts() ) : while ( have_posts() ) : the_post();

    add this:

    if (in_category('YOUR CATEGORY ID') && is_home() ) continue;
    //This Excludes the specific category from showing up on the main page

    Now, where it says YOUR CATEGORY ID, make that be the id of your category, such as My Category 1. What this code does is excludes the category of your choice from showing up on the main page. The only way I know of to find the category id, is to change the permalink settings temporally to the default setting. Then go yourwebsite and go to the category you want to find the id of, and at the very end of it, it should say something like this:

    http://www.-YOUR-DOMAIN-.com?cat=3

    the number is the category id. Then you can switch back to your other permalink setting. (I recommend the custom post permalink which is

    /%postname%/

    Well, now you have two post pages to post on. You can tag a post to as many categories as you like, but if you post it to the category that you wish not to show on the main page, then it will not show up on the main page.

    This may seen like alot of stuff to do, but its not really at all.

    I hope this helps. God Bless! †

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Three pages different post’ is closed to new replies.