Forums

[resolved] Posting to separate pages (18 posts)

  1. chaseadams
    Member
    Posted 5 years ago #

    Is it in any way possible to display blog posts on more than one page? I'm looking to have three pages on my WP blog, each page for a different topic of writings. Ideally, I'd like to be able to log in, write a new post, then select whether that posts appears on page X, Y, or Z. Any ideas or info is much appreciated.

  2. drmike
    Member
    Posted 5 years ago #

    Try looking at the categories. Sounds like that's what your describing.

  3. chaseadams
    Member
    Posted 5 years ago #

    Yes, the posts would be in three separate categories but I want them to also appear on three different PAGES. For example, The main page of the blog might hold all of my "business" posts. At the top of the page there would be links to a "personal" and "experiments" page, both pages displaying different posts than were on the "business" page.

  4. Chris_K
    Member
    Posted 5 years ago #

    Have you tried clicking on a link to your categories?
    Did you notice, that when you do that, you get a "page" (not to be confused with Pages) listing all the posts in that category.

    Just like the good Doc mentioned earlier.

    Is that not what you want?

  5. chaseadams
    Member
    Posted 5 years ago #

    Yes, so for example, if I create a handful of posts under lets say the "business" category, I can click the "business" tag and have a page full of only business related posts. My question is, how do I add a Page with only posts from one specific category? I want to be able to click a "business" button at the top of my blog and view a page of all business posts.

  6. Desdichado
    Member
    Posted 5 years ago #

    To add to this inquiry, because I would like to do the same thing, every post goes on the home page (or whichever one you select) and so if you want to separate it out by pages (topics) so that only posts related to those topics appear on those pages, I have not figured out how to do that. Any way? And the problem is every new post would go on the home page, wouldn't it?

  7. moshu
    Member
    Posted 5 years ago #

    chaseadams: how do I add a Page with only posts from one specific category?
    - You don't! (Wrong approach... WP does it for you out of the box.

    And for both of your: just stop talking "pages" - that confuses everybody since Pages has special meaning in WP.

    To achieve what you guys want, try to think the other way around: NOT posting to a page (which doesn't work) but excluding categories from the main page.
    By default, the expectation from a blogging tool is to show all the posts on the main page in chronological order.
    There are plugins for excluding cats from the main page.
    Also, there are techniques and plugins to make a static home page without listing the posts, so they would be visible only on the respective category archives.

  8. Desdichado
    Member
    Posted 5 years ago #

    Thanks. I'll give that a approach a try.

  9. chaseadams
    Member
    Posted 5 years ago #

    Sounds great. Could you lead us to the appropriate plugins?

  10. moshu
    Member
    Posted 5 years ago #

    Sure, just get into the habit to tell in your initial post all the details, e.g. WP version :)

    Some plugins work great with the 2.0.x branch and other don't work with 2.1...

    However, clicking on a category name and getting displayed ONLY the posts in that catgeory... works for ages in any WP version.

  11. chaseadams
    Member
    Posted 5 years ago #

    Thanks, moshu. My WP version is 2.1, by the way.

  12. moshu
    Member
    Posted 5 years ago #

    Then for 2.1 you have a built-in method to create/use static front page (see in your own admin panel).

  13. boreal123
    Member
    Posted 5 years ago #

    Hi,

    If you want to have only the post of one category on one page, you don't need a specific plugin. If you have Page X, Y, and Z, make a Page Template for each of the three pages. Then, for exemple for page X, put <?php query_posts('category_name=X'); ?> before <?php while (have_posts()) : the_post(); ?> in the template for that page. Create Page X and choose the corresponding template for that page. Then create a post and choose category X for that post. Do the same (Page Template, Page and posts) for Y and Z.

  14. moshu
    Member
    Posted 5 years ago #

    boreal,
    you just reproduced the hard way what WP is already doing out of the box: displaying category archives when clicking on a category name ;)

  15. sammyray
    Member
    Posted 5 years ago #

    Moshu,

    I don't understand why you don't understand this ... boreal is trying to explain to how create a professional look to a website - no visitor wants to search through archives on a sidebar. That is the point of having Page Tabs on the top of a website - for EASE of navigation.

    Take a look at the site I am working on-

    http://www.therecshow.com

    I have Pages called "Movies" and "music" and "television", the tabs for which are at the top of the main blog page.

    I want archived blog entries in the categories of "movies" and "music" and "television" to go on their respective pages ... for ease of navigation.

    Sure, I could have a sidebar archive, but it looks like crap and defeats the purpose of having multiple actively updating pages.

    Understand the difference?

  16. moshu
    Member
    Posted 5 years ago #

    I do; unfortunately, YOU don't understand how WP works.
    For me it is 100 times easier to alter the top navbar to point to the categories archives... then to change the basic behaviour of WP. It just doesn't make sense to force it to do something in a complicated way, when you have built-in solutions for it.

    All you have to do: change that MOVIES thing in the horizontal menu to point to your Movies category.
    You can use the Redirectify plugin or you can can handcode the links in the top navbar.

    What is soooo complicated in this?

  17. atentora
    Member
    Posted 5 years ago #

    I find boreal123's approach easy, not "complicated" in the least. It's a simple on line of code to add. Why do you see that as so much more of a hassle than your way which involves so much more work...

    Also, thanks boreal123 for the help.

  18. zubairkhan1
    Member
    Posted 4 years ago #

    moshu, where and how do I handcode the links in the top navbar? I wanted a Page in the top navi bar to display a category. On the Admin panel, under the newly created page, this is what I added:

    <html>
    <head>
    <META http-equiv="refresh" content="0;URL=http://www.mydomain.com/category/podcasts/">
    </head>
    <body></body>
    </html>

    This is fine but there is a "refresh", meaning after clicking on the link, it takes a second before it goes onto the categories tab. What's an easier way of doing this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags