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.
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
Have you created a page called ‘Home’?
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?
Does your theme include a home.php file?
Not that I have found. Does have a main index file
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/
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?
No my template comes with a default home page so there was no need to create one
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.
@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?
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?
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.
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.
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