• Hi everybody,

    I’ve read every single topic related to this issue, and I have tried every single possible solution but to no avail. It seems to me anything working doesn’t apply to the latest version of P2. I have even tried old solutions for older versions of P2 (such as the one provided by omarvelous, but this one didn’t work the ajax and replies didn’t work).

    I need for users to be able to choose from a dropdown categories list the one that fits best with their post. I’ve added the dropdown successfully but I’m not able to get it to record the category. I’ve tried hacking the ajax and functions files, as suggested in other related topics, but still no success.

    I would greatly appreciate it if anyone could tell me how to get P2 1.1.3 to record post categories when selected from a dropdown list.

    Thank you very much, in advance. I’ve been going crazy with this for many days now.

Viewing 11 replies - 16 through 26 (of 26 total)
  • @nathan,

    I hadn’t tested the code with version 1.1.5 yet but I may upload a p2 modified version for it next week if I can create the time. Without seeing your code it is hard to say what’s not working.

    Hi all,

    I was looking for a similar solution, but instead of having the category on the post-form, I would need a dropdown category selection in every published post (I’m using P2 as a collaborative tool and categories will be used like ‘status’ types – “follow up”, “completed”, etc).

    Is this possible to achieve?

    Thanks in advance!

    @nathan I’ve uploaded a copy with drop categories for 1.1.5, it seems to be working fine on my end. The code I had stated earlier still works, it’s just the line numbers have changed a bit (the code that is being replaced has not). I put the download on sendspace.

    @dini
    possible yes, do you want a user to click on a button after selecting a category or are you wanting the change to happen dynamically? Not sure about the latter but think it can be done with ajax. Front-end-editor plugin by Scribu is a great starting point.

    Does anyone know how to do exactly what the original poster described for version 1.1.6.2? This is precisely what I’m trying to figure out–i.e., I need for users to be able to choose from a drop-down categories list the category that best fits their post.

    Thank you, thank you, THANK YOU to anyone who can explain how these changes can be made in version 1.1.6.2! ??

    Now that I read it again, I should probably clarify my question a bit: Is there a way to modify the P2 theme so that, when a visitor is looking at the front end of the website (not the Dashboard), types their message into the box at the top of the screen, and hits the “Post It” button, there will also be an option for them to select a category for their post from a drop-down list?

    fyi, I just checked p2 v1.1.7 and above code still works for me.

    Thanks in advance!
    Touchwebdesign

    Hi Nobble,

    Thank you for pointing out the release of v1.1.7! I didn’t realize they’d recently upgraded. I have a quick question concerning your instructions: I’m finding everything you’re referencing except the first step (“In p2.js go to line 217 which should show: ….”) are you referring to js.php? I ask because I couldn’t find the line 217 language you’re describing in js.php and feel that I might be looking in the wrong place.

    Thanks again,

    Cindy

    Sorry for the false alarm… for whatever reason, my website folder contained 2 copies of p2.js and both were in an odd location, which confused things a bit. I got rid of the doppelganger and just followed the instructions, and they worked like a charm. Thank you so much!

    Nobble, thank you again for your help with the code. Mine works great! I have a question for everyone (in case anyone has had to do this); does anyone know of a workable code that would produce the same exact function, except with subcategories as well? So for example, if I have a dessert website, and a user wants to find cookies in the West Village NYC, they can select the category “West Village”; then under that, choose “Cookies”?

    This is exactly what I’m trying to do but @noble’s solution seems to fail with P2 1.2.1.

    I’m pretty sure I had it working with an earlier version of P2 on my test machine but now that I’ve upgraded it doesn’t want to play well with the new version :-(.

    Here’s my site (currently in the final stages of development – will go live once this is fixed again :-)):

    https://www.simplechurchipedia.com

    I can select the category from the drop down, but the posts only display in either status, post, link, quote etc. categories.

    Is there something missing in 1.2.1 that would force WordPress to give the drop down option priority over the buttons (status, post, link) up top? Or even allow WordPress to tag the posts with multiple categories?

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Dropdown Category Selection for Publishing Posts in P2 theme v.1.1.3’ is closed to new replies.