customizing template questions (8 posts)

  1. kakirine
    Posted 11 years ago #

    i have just recently installed wordpress. it's great. but i'm a beginner and need some help.
    this is what i want to do:
    1) have two different entry pages of my blog where version a) the default page shows only my public categories and posts and b) shows only my password protected posts and categories
    is there a way to do this?
    many thanks!

  2. Mike Little
    Posted 11 years ago #

    You can add
    $cat = '3';
    to the top your template right after the $blog = 1; line to only show entries for that category (3 in this case).
    and/or you can add
    $cat = '-3';
    in the same place to show all categories except category 3
    Hope this helps,

  3. kakirine
    Posted 11 years ago #

    oh yeah. i tried that suggestion after reading another similiar thread. it worked, but also ends up displaying ALL the posts for that category on one big long page, and somehow disables the category selection ability. thanks though. any other suggestions?

  4. jonanhold
    Posted 11 years ago #

    bump. if i put:
    $cat = '-4';
    I end up with ALL posts from ALL other categories.

  5. jonanhold
    Posted 11 years ago #


  6. arthuc01
    Posted 11 years ago #

    forgive me but what IS this bump business??

  7. TechGnome
    Posted 11 years ago #

    What isn't spoken is that there are a couple of settings that need to be set from the admin side.....
    go in to the admin area....click options
    change "posts_per_page" to how ever many you want to show: 5, 10, 13, 4, etc...
    then change "what_to_show" to "posts paged"
    I think this will give you the desired result.

  8. Cena
    Posted 11 years ago #

    (Arthur, the 'bump' business is just to keep a topic current, if it hasn't been responded to within some period of time.)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.