Articles on different pages
-
Hi, I am a beginner in WordPress why my question maybe is somewhat stupid. But I was not able to find a straight answer in the forums.
I would like to have several (six) pages on my wordpress web site. When I create an article I would like to be able to chose on what page the article will be published.
Example; Article 1 will be published on page 3, Article 2 on page 1 and so on. Is this possible and how do I do it?
Thanks in advance
David
-
WordPress has an entity called a Page but typically a page is just the information you key into the content section.
There is also the ability to Categorize your posts and then WordPress give you link to view all lthe posts in that Category. So using your example you could call your Categories Page 1, Page 2, Page 3 and so on.
Since you are new, try that out using the WordPress Default Theme.
Thanks for the information but that is not exactly what I am looking for (and I am not THAT new to WordPress:)).
I will try to explain more in detail here below and using the example used by wordpress codex.
My site will be about the world and there will be a frontpage describing the site in general and separate pages each of the continents. Accordingly there will be six pages on the site:
1) Frontpage
2) America
3) Europe
4) Africa
5) Asia
6) AustraliaThese will NOT be categories but pages.
When i write a post about Paris I would like this post to appear on page 3 (Europe) only. And when I write a post about Melbourne I would like the post to appear on page 6 (Australia) only and so on. None of these post should be posted on the frontpage.
So, is this possible and how do I do it?
David
You do it by NOT making them static pages, but making them posts placed in categories. You can prevent them from being posted on the front page with a bit of code.
<?php if (is_home()) { <?php if (in_category('3')) continue; ?>Put that right after the beginning of the Loop. Whatever ID’s you list in_category, they’ll be ignored and not display on the front page.
Wow, I must say that I’m quite impressed by the reply time at this forum.
Thanks for the answer doodlebee. However, I’m still missing one part to make it work. As follows:
I have now created five categories: America, Europe, Africa
Asia and Australia.I have also created five pages (apart from the front page): America, Europe, Africa, Asia and Australia.
I have also written a post about Paris. Thanks to the code given by doodlebee the post is not shown on the front page.
But how do I do in order to have the post about Paris published on the ‘Europe page’? That is to say, what is the trick to have all posts in a certain category to be published on the corresponding page?
Thanks again
David
I have also created five pages (apart from the front page): America, Europe, Africa, Asia and Australia.
That’s the mistake. That’s what they (we) are trying to tell you: do NOT use Pages, they are not meant to display multiple posts. Period.
Are you listing the Categories, say in your sidebar? If so, then just clicking on the Category links would give you the posts for just that Category.
Right – what Moshu said. I think you’re getting “Page” and “posts” confused. What I’m saying is, don’t use static Pages at all. Keep them in categories. Then, when you pull up the “Europe” category, then everything in that category will show. Or you can set them to show in subcategories. But for this, you don’t need Pages.
One idea, I guess, if you really want to be a stickler for static Pages, is to have your “Europe” static page, and have it with a description on that section. Then use a category list to display a list of links in the “Europe” category. I guess that’s one way you could go about it. But you can’t make posts appear in static Pages – that’s why you should just stick with post categories.
Hi,
I think I understand the explaination being given. The categories sort out the posts in that category and if you click on the catagory the page will appear with only those posts meeting the category. But the appearance of the “page” containing those posts will be the same – correct?
What if I wanted to have the appearance of the “pages” different? To follow along with this geographic example what if I wanted to have the North America posts “appear” on a “page” that had a map of North America and a purple background.Then I wanted all of the Euorpe posts to “appear” on a “page” headed by a map of Europe and a page with a yellow background. I could go through the rest of the continents,but I think you get the idea.
Could I do this. How could I do this? I’d like to have the posts for different catagories appear on “pages” that might have different appearances and differnt elements.
Thanks in advance for your help.All the best,
Ted SudolIt is always useful to read the documentation before making hypothetical posts π
This is what you need: http://codex.wordpress.org/Category_Templates
A more detailed guide is here:
http://wordpress.org/support/topic/30653
(+ the links from there)Thanks a lot for your support. I’m overwhelmed by the support received within only a couple of hours.
And most important – I got the point and when writing this post I’m about to remove all of my pages and replacing them with categories (still searching for a good template though…).
Thanks again and thanks to the support received WP is my only choice from now on.
David
I have a related question. Fess up first: I am a complete noob with PHP (i.e. I’m not even sure where the above code from Doodlebee’s post would go) and a near-noob to WP, though I am very comfortable with HTML and CSS.
I don’t want ANY posts to go on the front page/current information except the specific ones I put there. I plan on using WP more as a CMS than as a blog, so there isn’t a reason for the tons of content I plan on shoveling into my categories to appear on the front page. I suppose I could stick that above-listed code in (wherever it goes…duh) and just list every single category in the in_category list, but that seems a bit blunt. Is there an easier way?
On further reading, I find that I can set the front page as static from the Reading Options panel — you already knew that, but I didn’t. Is this what I’m looking for?
On further examination, the static page option isn’t what I want, unless I create a separate page for display as the home page. There’s gotta be a better way.
I have been looking for a similar solution and MAYBE this could work:
1. install the “page links to” plugin
2. Create a category named europe
3. Create a new Page named Europe
4. in the Europe Page, insert (in the custom fields)a link_to http://yourblogname/?cat=’cat ID’ (check the Cat ID number in Manage>categoriesThat should redirect you from a Page to a category list. I’m not sure if you could customize the colors…
Even simpler solution…
And yes, you can have different colours on different Category_Templates
The topic ‘Articles on different pages’ is closed to new replies.