WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Why not include a Dropdown filed in Pods? (16 posts)

  1. greattest
    Member
    Posted 1 year ago #

    Hi, I think Pods is a very excellent Plugin in WP. But why dropdown field which is usually used is included in it? Or what should do if I need it? Is there any extra component that can help?

    http://wordpress.org/extend/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    It is, add a new field to your pod, set the type to relationship, and choose the Custom Simple option. You can define a custom list of items there, or use the more advanced relationships by choosing from a wide variety of object types in WordPress.

  3. greattest
    Member
    Posted 1 year ago #

    Thank you so much for quick response Scott.
    That is what I need.

  4. MatthewByrom
    Member
    Posted 1 year ago #

    Hello there,

    As an extension to the above question:

    When creating a Simple (Custom Defined List) option, how would you separate the options to put each on a new line?

    I've tried comma separation, semi-colon, even \n.

    Have I missed one?

  5. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    You hit enter/return on your keyboard, that will add a new line.

    Here's an example of the formats --

    Values like:

    Sunday
    Monday
    Tuesday
    Wednesday
    Thursday
    Friday
    Saturday

    or key/value pairs like:

    sun|Sunday
    mon|Monday
    tues|Tuesday
    wed|Wednesday
    thurs|Thursday
    fri|Friday
    sat|Saturday
  6. MatthewByrom
    Member
    Posted 1 year ago #

    Hi Scott.
    Thanks for the reply.

    I've tried that already, when we click the dropdown, the fields are all located in one long line, separated by "n".

    For example:

    I enter the following list, as displayed:
    Baptist World Aid Australia
    CEDAR Fund
    Food for the Hungry
    Integra
    MAP International
    Mission Alliance
    Mission East
    SEL
    Tear Australia
    Tear Netherlands
    TEAR Fund NZ
    Tearfund Belgium
    TearFund Switzerland
    Tearfund UK
    World Concern US
    World Relief Canada
    World Relief US
    World Renew
    Integral Secretariat
    Medair

    When I save it & try to create a comment, The option ends up like this:

    Baptist World Aid AustralianCEDAR FundnFood for the HungrynIntegranMAP InternationalnMission AlliancenMission EastnSELnTear AustralianTear NetherlandsnTEAR Fund NZnTearfund BelgiumnTearFund SwitzerlandnTearfund UKnWorld Concern USnWorld Relief CanadanWorld Relief USnWorld RenewnIntegral SecretariatnMedair

    I tried the key|value trick, but ended up just getting:

    "Baptist World Aid AustralianCEDAR Fund"
    On the drop-down as an option.

  7. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Which version of WordPress / Pods are you running that you're experiencing this?

  8. MatthewByrom
    Member
    Posted 12 months ago #

    Hi Scott.

    We're running WordPress 3.5 & Pods 2.2 at the moment.

    No plans to update WordPress for the forseeable.

  9. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 12 months ago #

    This may have been a bug with that version of Pods, there is no other solution than to upgrade Pods at the very least, to Pods 2.3.8.

    I can assist you in the upgrade process in case you have any issues, if there are issues, there's a bug I'll need to fix anyways so I'm on the hook for that.

    As always, be sure to backup your files and database before any upgrade to be safe.

  10. harrisonmiracle
    Member
    Posted 11 months ago #

    I upgraded to WordPress 3.6 (also using pods 2.3.8) and I am now getting the same problem as Matthew. The relationship, custom defined, now adds "n" in between each field instead of keeping it in a return.

    Probably shouldn't have updated wordpress yet.

    Any ideas on what I could do to quick fix it?

  11. harrisonmiracle
    Member
    Posted 11 months ago #

    I actually just found where it explodes the fields out with /n and changed it to a comma for the time being and it seems to work. Although I know it's just a temporary fix.

  12. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 11 months ago #

    I'm testing on my new environment and it appears I can recreate the bug, so I'm looking into it deeper right now.

  13. harrisonmiracle
    Member
    Posted 11 months ago #

    Thank you, I also just found that while editing a Template (from components) it add's rn between each return. It's like stripping out the invisible returns in the database.

  14. pglewis
    Member
    Plugin Contributor

    Posted 11 months ago #

    We're on the case on that one as well, thanks for the reports!

    https://github.com/pods-framework/pods/issues/1584

  15. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 11 months ago #

    What version of PHP are you all running?

  16. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 11 months ago #

    We've fixed this in Pods 2.3.9. We're working on releasing 2.3.9 today or tomorrow, to get early access to it, just download the latest beta from http://pods.io/latest/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic