PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Dynamic Dropdown population

  1. The code below works fine locally to populate a dropdown. On the client server it returns the right posts (when you echo $post in the foreach linke 60) but it does not populate the dropdown.

    http://snippi.com/s/2fvtp12

    Anything I'm missing that could make it work different on a different server?

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  2. The code works on a localhost environment, but will not work on the new server?

    Are there any version differences or configuration differences? If the code works on one server, I would expect it might be a configuration issue. It's odd that the $post is returning the correct information.

    How about the form ID or field IDs if you recreated or imported the form? Maybe something there changed?

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  3. The form id and the field id's match (I triple checked that). I exported the local form and imported it to the live server. There is JS that also keys in on the fields (with an ajax autopopulation) and that works on the fields as well.

    It's simply that chunk that doesn't work. As I said, if I print_r on the value of $post it get's me the data I expect on the form I expect but it does not show it in the field I expect.

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  4. Ended up tracking it down to a poorly written plugin screwing with the live site. With WP_DEBUG on in dev it stopped whatever was messing with the form.

    Resolved.

    Posted 11 years ago on Monday July 9, 2012 | Permalink
  5. Glad you got it working. Thanks for letting us know!

    Posted 11 years ago on Monday July 9, 2012 | Permalink

This topic has been resolved and has been closed to new replies.