Support » Fixing WordPress » Mini Home Pages for Categories?

  • I would like to be able to create a set of pages that act as “Home Pages” for the various Post Categories. My site is for an organization that serves a lot of charitable projects in underdeveloped countries. Say I have the categories: “Education, Health, Human Rights, Environment, Sustainable Livelihood;” I want a base page for each of those categories which explains what the Category is about and offers a list of Posts in only that one Category.

    I’d like a way that I could click on the Category in the menu and go to the Category home page. That page would have some identifier which would allow me to show the page’s text and and also the list of posts in that Category.

    I am in the early stage of creation, so there is no website to view, yet.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I can probably help with that. Take a look at my Miata Club site – BluegrassMiataClub.com. Especially the Events->Event Talk, Ads and More->For Sale, and Good Stuff->Good Roads pages.

    The menu consists of pages that display one category, with a sticky post as the first post on the page to explain what the category is about.

    There are several ways to accomplish this. If your theme uses pages in the menu, you can name the pages ‘Education’, ‘Health’, etc, so the menu looks the way you want. Then, create a template that will display the posts in the category and honor sticky posts (which are normally honored only on the Home page). I will be glad to help with the template if you will post the name of your theme (assuming the theme is a freely availably one so I can look at the code).

    Thread Starter Jake Sterling

    (@jake-sterling)

    You can look at what I am working on at my sandbox site — http://sdia.khasidi.net. But it’s not a pre-made theme and it’s still very rough, so I am kind of embarrassed to be showing it to people yet! However, the Pages are listed in the right-hand sidebar and they are in more or less the order I want them in. The “News and Articles,” the “Library,” and the “Get Involved!” sections are going to be the ones with lots of Posts. The other sections are fairly static and will be based on Pages.

    (You can see the present site that I am hoping to improve at http://susiladharma.org)

    I don’t really know what a “sticky post” is, but I’ll try to find it in the Codex.

    By the way, my plan is to have the child pages in the menu be invisible unless you are in that section. That way, you don’t see the whole list unless you are in that specific section. I have done this on other sites using CSS and it works quite well.

    Thread Starter Jake Sterling

    (@jake-sterling)

    P.S. I like your site. My Dad had an MGB when I was first driving and I used to love it. I always wanted a Miata!

    — Jake

    I looked at your site – very good start! I think you will need a slightly different approach from the one I took. Instead of a sticky post at the top, I think you need to have multiple loops in your page.php file.

    The top loop would just display the page content. The second loop would display the posts in that category. Two slightly tricky parts:

    1. Knowing which category is to be shown.
    2. Making the pagination work properly.

    If you can email me a copy of your page.php to m_a_mcdonald =at= bellsouth =dot= net, I will try to at least get you close. Since I can’t test it, you might still need to tweak it, but it ought to be a good starting point.

    Mac

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mini Home Pages for Categories?’ is closed to new replies.