WordPress.org

Ready to get started?Download WordPress

Forums

Multiple posts in different pages (9 posts)

  1. hshenoy
    Member
    Posted 5 years ago #

    I have been maintaining a blog and a livejournal, and in a fit of enlightenment, I have purchased server space and started running wordpress on it.

    I've got many things I need to highlight on the wordpress blog under different pages.

    For instance, the 'Music' section needs to have a few posts and some other sections need to have more than one post.

    However, I don't see how I am able to do this on wordpress and hence I'd be grateful if anyone could help me out in this regard!

    thanks!

  2. Evita
    Member
    Posted 5 years ago #

    DonĀ“t use pages. Pages are for static content like "about me" or something else.
    You have to create categories (and read the codex).

  3. hshenoy
    Member
    Posted 5 years ago #

    Uh well, I tried dabbling with categories. However, what I am looking for is some way in which the bar on top of the website can contain links that I can then use to redirect users to other posts exclusively under those sections.

    Just think of it as a huge folder with different sets of notes within it. Each link represents one specific area under which different notes are then displayed.

    What if I wanted two or three posts under 'About', for example?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    However, what I am looking for is some way in which the bar on top of the website can contain links that I can then use to redirect users to other posts exclusively under those sections.

    See, this is where I think most people get confused. Many themes are made to show Pages on that top bar, and so people think that Pages are therefore the only way to do it.

    Evita was correct. If you want to group posts together in bundles, then you want to use categories and that's all there is to it. Doing thing the right way makes things simpler.

    BUT, you also want to show them on that top bar. The correct answer is to change the top bar to show Categories instead of Pages. See the difference in thinking there?

    Doing this is generally simple. You're going to find the code in your theme that generates the top bar. It might be in the header.php file, or it could be elsewhere. Regardless, it's going to have a call to wp_list_pages. By modifying that or adding a call to wp_list_categories there, you can put categories in the top bar.

    HOW you do that is something I can't tell you, because it depends a lot on your theme. But the basic principle is the same.

  5. kapa0
    Member
    Posted 5 years ago #

    What if I only want some of the Categories to appear on the top bar?

  6. amirk011
    Member
    Posted 5 years ago #

    Otto42 is there any Plugin which can help in putting categories @ the top ? Especially for version 2.6.2

  7. amirk011
    Member
    Posted 5 years ago #

    I found wp_list_categories but couldn't able to find wp_list_pages. Any help ?

  8. mores
    Member
    Posted 5 years ago #

    What if I only want some of the Categories to appear on the top bar?

    use exclude=1,2,5,10 to remove the unwanted categories.

  9. zukny
    Member
    Posted 5 years ago #

    For those of you, that have no clue what any of these people are talking about. GOTO THIS ARTICLE!

    http://moshublog.com/2007/07/26/pages-and-categories/

    AlL you have to do is follow his steps. He tells you not to replace the code with new code, he simply adds a segment of code underneath of the pages code, which enables you to add a category to your page

    he even shows you demo pages!

    feel free to check out mine, i made a LOST page on my blog that is set up as a category, when everything else is set up as a page.

    http://www.mymorningstory.com

Topic Closed

This topic has been closed to new replies.

About this Topic