• zanzaboonda

    (@zanzaboonda)


    Okay, so what I really want to do is have my users choose two separate categories. One is the country and the other is their sex. I.e., my post would be under the categories of Female and United States. My site is https://doppeldreamer.com

    I edited posthaste.php by basically copy/pasting the first category dropdown code. Obviously I am not a coder, lol.

    So here’s what I have right now:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    It shows up on the form just beautifully but the post only gets assigned to one category. In this case, it is the second (sex), unless I change something (like the name).

    Clearly I’m doing something wrong but I’ve looked through the codex and cannot for the life of me figure out how to fix it.

    Can anyone help if I ask with a pretty please?

    Thanks and best wishes,
    Kristen

    Secondary question:
    Will this work with WP 3.1?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zanzaboonda

    (@zanzaboonda)

    Any thoughts on this? Any help or suggestions would be appreciated. ??

    Thanks and best wishes,
    Kristen

    Basically you should save the category ids in a different format, when saving where to display the form. Now you get one number, but instead you could use something like 1:2, explode this text in posthasteDisplayCheck function, and check, if current displayed category fits your needs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Posthaste] two category dropdown menus?’ is closed to new replies.