WordPress.org

Ready to get started?Download WordPress

Forums

drop down categories - status? (13 posts)

  1. omjn
    Member
    Posted 10 years ago #

    hi,
    I'm running 1.01, with the drop-down hacks found here, as they were the only way I could get drop down categories to work. Now however, the 'All' category seems to have disappeared, and selecting the first category doesn't actually take me to that category, it does, well, nothing. I can't seem to find consistent information about drop down categories in the support archives, so I was hoping someone might be able to point me in the direction of how to get them to work, or whether I should wait unitl 1.2 is released in the hope that they might work as documented. anybody?

  2. carthik
    Member
    Posted 10 years ago #

    I use a nightly build of 1.2

    <form action="<?php echo $PHP_SELF ?>" method="get">
    <?php dropdown_cats(); ?>
    <input type="submit" name="submit" value="go!" />
    </form>

    this works fine for me.
    http://blog.carthik.net
    is where you can see it working.

  3. shirasade
    Member
    Posted 10 years ago #

    Thanks for that code - I'm completely new to WP and not very good with php, but this even I manage... Now I was wondering if it's possible to create dropdown menus (or lists, for that matter) of just the subcategories of one certain category. For example I have
    - Books
    -- fantasy
    -- historical
    and so on, and would like to have a list or drop-down menu of all subcategories for the category 'Books'. How would I go about that? Thanks in advance!

  4. carthik
    Member
    Posted 10 years ago #

    the dropdown_cats(); function in itself cannot do that for you. You will have to write some of your own code to do exactly that. It's fun learning php, give it a shot, and when you solve the problem, share it, so others don't have to do it all over again. I really wish I could do it, but I am sorry I can't write that up right now. Have fun :)

  5. omjn
    Member
    Posted 10 years ago #

    thanks for the reply. by blog is sort of mission critical so to speak, so I am reluctant to run alpha code for now. I guess I'll just wait for the beta to come out and then maybe give it a whirl. thanks again.

  6. shirasade
    Member
    Posted 10 years ago #

    Thanks - I'll see if I can find a solution and be sure to share it if I do!

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    2fargon:
    Where did you get your sortable archives page? I'm very interested in implementing something similar on my site...

  8. carthik
    Member
    Posted 10 years ago #

    http://dinki.mine.nu/weblog/b2-img/narchives.phps
    that's the "nicer archives" file. Save that as narchives.php on your blog-root and you are ready to link to it.

  9. carthik
    Member
    Posted 10 years ago #

    Lilandra : that sounds like something the author of narchives.php did not account for. I think that's okay though since you can't read the private posts anyways. If you want to hide those links from displaying, the code will need to be modified a little.

  10. girlwonder
    Member
    Posted 10 years ago #

    as someone who has poured through this forum for about an hour and tried to figure this stuff out - can i just say THANK YOU laughinglizard for making my life EASY. a little more tweaking and i'm done. you are officially my new best friend :D

  11. girlwonder
    Member
    Posted 10 years ago #

    okay, now i have a question. if you look here you'll see the archives stuck into a psuedo template and for whatever reason they only show the current month.
    but if you look here, which is just the code from above in a php doc, they show. anyone have any ideas as to why?

  12. girlwonder
    Member
    Posted 10 years ago #

    no one have a clue at all huh?

  13. carthik
    Member
    Posted 10 years ago #

    The pseudo-template is a php file, and it might include some file, or have some code in it that limits the posts displayed to those of the current month, in other words, it could be restricting what can be displayed. Look for the answer in the template you included this into...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.