So I understand that whatever I post goes to the main page. Is there a way that I can post to different PAGES? Does a theme exist that can do this, or something I can edit in the theme?
So I understand that whatever I post goes to the main page. Is there a way that I can post to different PAGES? Does a theme exist that can do this, or something I can edit in the theme?
Whatever you post does tend to be displayed, in date order, on your home page (or main posts page) in most themes. yes.
Is there a way that I can post to different PAGES?
Now - you need to be a bit careful with the terminology here. Do you mean WordPress Pages or different post listing pages (called archives or category pages).
Assuming you mean the latter, your posts will also appear, automatically, on pages that list posts by category and those that list posts by date.
So, what is it that you want to do? Exclude certain types of posts from appearing on your main posts page?
I am referring to WordPress Pages. For example the following blogsite has the pages on the top(BARGAIN BUYS, HOW TO, INSPIRATION)...when you go to them it actually has posts in them. So my question is how do I post like that in WordPress Pages.
http://www.thebargainqueen.com/
I notice that if I hover my mouse over the link, the URL shows http://thebargainqueen.com/categories/name of page
Maybe this involved something with Categories and Pages?
Anyone know how to do this?
go to the doc that esmi gave you and read the example about a page of posts....this allows you to display posts with a specified category on a page.
Im going to need a little help here. Im confused on how to create a category ID. It says:
// page id 21 will get category ID 12 posts, page 16 will get category 32 posts, page 28 will get category 17 posts
So, I know what the page ID is and how to find out (it says it in the URL of the page when I click it). How do I create this Category Page?
You don't create a category id. WordPress does when you create a category for your posts. To find the id for any given category, use the same approach as finding a post id but, obviously, look within Admin/Posts/Categories.
Ok. So i got the Category ID and the Page ID. So, correct me if I'm wrong but this is how it should work:
When someone clicks on the specified page, what should open next is page with a list of all the posts that are in that Category? So for example, this is my PageofPosts.php: page 73 should open up all in Category 7, correct?
<?php
/*
Template Name: PageOfPosts
*/
get_header(); ?>
<div id="content" class="narrowcolumn">
<?php
// page id 21 will get category ID 12 posts, page 16 will get category 32 posts, page 28 will get category 17 posts
if (is_page('73') ) {
$cat = array(7);
}
When I click on the PAGE, it goes to that page, it's now showing posts relating to that Category ID.
Ok, so I'm getting closer. Now when I click the PAGE, it is showing the posts related to the Category I specified. However, each post is showing "Posted in UNCATEGORIZED", even though they are in Categories.
This topic has been closed to new replies.