Forums

how to give pages a category other than uncategorized (4 posts)

  1. teamedge
    Member
    Posted 3 years ago #

    hi guys, I've got a problem assigning posts in other pages categories.

    for example on my blog's home page, the post I made was put under the category news, however on the about page, the article there is assigned to "uncategorized" and I don't know how to change it. Could anyone help out?

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi

    To clarify: pages can not have categories. only posts. posts are displayed ON PAGES, so it can look like a page has a category if only one post per page, maybe. but the category is actually with the post.

    posts are not "put under" any category. the only way a post can appear in a category is if someone ASSIGNS it to that category. with the exception of uncategorized. if a post is assigned to no category at all, it will be marked as uncategorized. The about page typically is a page and thus not in a category, not even uncategorized. If it appears as being in a category then a post must be displaying on that page.

    When you edit a post below the edit window you will find a section category. It is there that a post is assigned or removed from a category. So look at your list of posts and find the one that's on the about page and edit it - there you can change its category.

    make sense?

  3. teamedge
    Member
    Posted 3 years ago #

    Ah, I see. In that case that leads to another issue being I can't make posts on pages other than the home page. Through the control panel how can I make posts on other pages?

  4. stvwlf
    Member
    Posted 3 years ago #

    Hi

    You can put posts on pages using a PHP function called query_posts() Not through the control panel, although there are probably plugins that will help. But even to use the plugin you have to understand something about how query_posts works.
    http://codex.wordpress.org/Template_Tags/query_posts

    I explained this yesterday to someone in depth - please look here for how to use it to display one category of posts on one page and another category on another page - thank you...
    http://wordpress.org/support/topic/264482?replies=9#post-1053767

    One thing - the person in that post wound up using the NAME of the page as the indicator of which page she is on. I recommend using the last part of the url, which is called in WP the page slug instead of the page Name. You will see what I mean when you look at the post.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags