Support

Account

Home Forums General Issues Simple drop-down menu for relationship

Helping

Simple drop-down menu for relationship

  • Hi,

    New to ACF and not a WordPress expert.

    I have two custom post types, A & B. For each post of type B I’d like to have a drop-down menu with a selection of all posts of type A, in order to select one of them.

    The “Relationship” field type shows a very nice multiple-selection box which is confusing in my case, since there can only be a single type of A assigned to B. Even if I set “maximum value” to 1, the interface is not very well suited to the situation.

    Is there an easy way to show a simple drop-down menu instead? If I choose a “Select” field type I have to enter the possible choices manually, which is not what I want (the menu should dynamically show the titles of all posts of type A).

    Thanks a lot for your help.

  • You can do it with ‘ACF-Post Object‘ Field or ‘ACF-Page-link‘ field as well.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Simple drop-down menu for relationship’ is closed to new replies.