WordPress.org

Ready to get started?Download WordPress

Forums

putting posts on a different page (19 posts)

  1. rmck1
    Member
    Posted 4 years ago #

    I am currently working on my blogging page and was wondering if it is possible to use another page on my wordpress site for blogging. Everytime I try to change it, it puts the post on the front page.

    Any advice would be great as i am fairly new to wordpress.

    thanks

    r_m

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Create 2 new WordPress page - 'Home' and 'Blog'.

    Navigate to Settings/Reading and under "Front page displays", check "static page". Choose "Home" from the Front page dropdown and "Blog" from the Posts page dropdown. Then save your changes.

  3. r_m
    Member
    Posted 4 years ago #

    Hi esmi

    When i go to the reading settings i can do everything you have said except from select home from the front page drop down and when i just leave it as select it shows on both pages.

    any help would be appreciated

    r_m

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Have you created a page called 'Home'?

  5. alphausa
    Member
    Posted 4 years ago #

    I have the same issue. Home is not in the select file. Home page seems to be a default page fro m setup. I am using Pundit 1.2 theme. my site is http://www.alphaamericannation.com. I want o post my posts to the home page and users posts to a page I made called Citizens post. Ant ideas?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Does your theme include a home.php file?

  7. alphausa
    Member
    Posted 4 years ago #

    Not that I have found. Does have a main index file

  8. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    If you want a list of posts in your Home page, then what you're asking for isn't the same thing as that suggested above.

    Create a new category called "Citizens". File all of your users' posts under this catgeory. Then edit index.php and just before the start of The Loop:

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

    add:

    <?php if (is_home()) query_posts("cat=-x");?>

    where x is the id of the Citizens category. This will exclude all posts from the Citizens category from your Home page listing.

    http://quirm.net/2009/06/24/finding-wordpress-post-ids/

  9. alphausa
    Member
    Posted 4 years ago #

    I do not see this scrypt in the index.php file. Only in the page.php file

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

    any ideas if there are othere words used for the same loop in Pundit 1.2?

  10. r_m
    Member
    Posted 4 years ago #

    No my template comes with a default home page so there was no need to create one

  11. alphausa
    Member
    Posted 4 years ago #

    I have the same thing, posts go to default home page and all others. I want o add posts from users called citzens to theirs won page not the default home page.

  12. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    @alphausa: Are you using a wordPress static page for your home page?

    @r_m: Didi you try setting up the Blog page as suggested above?

  13. alphausa
    Member
    Posted 4 years ago #

    I added/created anew page from the admin site in my PUNDIT 1.2 theme.

    I went to settings and it does not have a page name for the default page.

    I created a category and test post did appear in the category and the default page, not the new citizen page.

    I can handle Citizens posts appearing in their own category if this is the only way to do this. But I do not want them to appear on the Main Default Homepage.

    Any code for this?

  14. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Assuming you've set up a category called Citizens for the posts, find that category's id (see above) then try editing index.php and adding <php query_posts('cat=-n');?> immediately before if(have_posts()) : while(have_posts()) : the_post(); ?>

    where n = the id of the Citizens category.

  15. alphausa
    Member
    Posted 4 years ago #

    Thanks, I give up there is no; if(have_posts()) : while(have_posts()) : the_post(); ?> in the index.php file. Must be using a different scrypt code.

    I cannot get user posts to go to their own Citizens Post categaory or their own Citizens Post page and stay off of the main default page.

  16. r_m
    Member
    Posted 4 years ago #

    I have already set up a page called Blog and the posts go to that page the only problem is they keep going to the default home page as well.

    Thanks

    r_m

  17. r_m
    Member
    Posted 4 years ago #

    Also I cannot alter My default home page for example i cannot delete it then create my own

  18. alphausa
    Member
    Posted 4 years ago #

    Excatly my problem too. Buy no one can seem to help with this issue. I have tried and done the solutions posted and still no success.

  19. driz
    Member
    Posted 4 years ago #

    YUCK YUCK! Do NOT use a page called Home and one called Posts and then use the reading option to spit em out. This is one of the dirtiest hacks in WordPress and its actually classes as a feature!

    To do what you want is very simple, your index.php in your template is your home page and then create a simple postlist.php for your posts. Simply copy the index.php code into the other and then in your index.php you should then put your home page content, job done! Now obviously you cant edit your home page from the page menu, but then again a home page is a page of content like the others rather it is a portal to your posts and other pages and so as such should be done this way, also the page creation tool in WordPress only lets you add text etc so what you gonna have is a very weak home page using this technique!

    Adding that option in WordPress reading section was a dumb idea! And assumes that the user has a post page and home page, well what if you had a home page and then several post pages? Like Home, News, Tutorials etc, you wouldnt have a central post page but several. Making this system pretty useless, as to do this would use categories for the sections and then the index.php as the home page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.