WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] How to loop all options in a select field? (2 posts)

  1. olofiano
    Member
    Posted 1 year ago #

    Hi, first I must say thanks for this really great plugin! It has saved me from many hours of work.

    Now to the question:
    Im setting up a page that shows all of my clients resellers based on which city/area they are in. For this I use the select-field (dropdown), where the client can add which city the new reseller is in. Now really to the question. Is there a way to loop out all of the options in that select-field so I can use them as hyperlinks to show the resellers? I need this to be done even if there is no post with one of the options attached to it.

    For example:
    Reseller A is located in PComputer City
    Reseller B is located in The Big Apple

    The select-field holds:
    PComputer City
    The Big Apple
    Stockholm

    So, what i need is to get all three options out of the selection, even though theres no post/attachment to Stockholm. This might be supersimple but I havn't found any solution without digging in to the core. Any ideas?

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. olofiano
    Member
    Posted 1 year ago #

    Found the solution here .

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic