WordPress.org

Ready to get started?Download WordPress

Forums

Category Specific Archive (11 posts)

  1. OperaManiac
    Member
    Posted 9 years ago #

    WP 1.2.2

    If I am checking a category page, can i have the side bar archive show posts only from that category?

  2. dss
    Member
    Posted 9 years ago #

    yes.

    see that in action right here

    It's done (in 1.3-1.5 anyway) with three steps.

    1. use "custom post entries" and code your own "get" for the category you want to call.

    install and activate.

    2. in your sidebar you have choices.

    A. you can make a special sidebar to include in your "page"
    B. you can call your "get" using an "if"

    example:
    if (is_category(2)) {include "recentnews.php";

    don't forget to close it with this }

    ( i miss the encoder widget so bad)

    3. if you chose method A, you want to call the sidebar somewhere within your page include ("recentnews.php")

    that should do it.

  3. dss
    Member
    Posted 9 years ago #

    Right,

    now i re read your post and saw that you were asking about wp1.2.2...

    something along these lines will work. but it's going to have to be the "if" scenario. because in 1.2 you can not create pages. at least not easily, or for category archives really.

  4. OperaManiac
    Member
    Posted 9 years ago #

    mm... i was looking for the current version 1.2.2

    no customised get_archive function anyone?

  5. OperaManiac
    Member
    Posted 9 years ago #

    alright... i installed 1.5 nightly. can anyone give me exact procedure to get the stuff?

  6. jerome_valdez
    Member
    Posted 9 years ago #

    Say, Sushubh. Did you ever get the custom 'get' required to do what you wanted? I want to do the same thing but have not found anything in the wiki/forums/general internet that can do it. This post is the closest thing I have found to slove the problem.

  7. OperaManiac
    Member
    Posted 9 years ago #

    nope. i ended up making static pages. :)

  8. podpersonjason
    Member
    Posted 9 years ago #

    heeey DSS, can you re-explain your instructions again? i'm also extremely interested in a category specific archive function. but, i'm not sure what you mean by "custom page entry" is that a function somewhere?

    also, i'm not at all sure of what you mean when you say to code a new "get" for the category to include?

    plus, what the heck is the context for 'include("file.php")?

    i come to this forum a lot for help, but it seems like 90% of the advice - while useful - is written without any consideration that context would be EXTREMELY helpful for people who are newer at this. examples? those work great too.

    thanks.

  9. moshu
    Member
    Posted 9 years ago #

    @podpersonjason,
    the previous posts refer to v. 1.2.2 - now you can update to 1.5.1.2 and you can use the template system and have different template for every category.

  10. podpersonjason
    Member
    Posted 9 years ago #

    yes. i'm getting the hang of templates pretty well, and they work great for making the content look different depending on what category is being viewed, but i haven't found anything that gives me a category specific archive.

    in this case, i'm using WP to run my whole page, but only want the archives to be viewed for the category that contains the Blog. (for example sake, we'll say the blog is category 2... i want to be able to show a monthly archive for ONLY category 2)

    @Burt Heymanson, i tried using your cats-widgets.phps (http://www.qogo.com/wpplugins/cats-widgets.phps) because it seemed like the perfect solution... but when i uploaded it to the 'plugins' directory, the cats-widgets.phps file would display on ANY .php file? for example, wp-admin.php would display the content of cats-widgets.phps? once i removed the cats-widgets.phps everything went back to normal. does this mean it's incompatable with WP 1.5.2? any plans on updating it? please please please?

  11. onenationunderdog
    Member
    Posted 8 years ago #

    anybody got category-specific archives working w/ strayhorn?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.