Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Select field #8

Open
wpsumo opened this issue Apr 14, 2020 · 1 comment
Open

Select field #8

wpsumo opened this issue Apr 14, 2020 · 1 comment
Labels
enhancement New feature or request Output of field code Output of generated field code is not working or needs improvement

Comments

@wpsumo
Copy link

wpsumo commented Apr 14, 2020

The select field is not supported, as below doesn't display anything.

<?php if ( get_field('field') == 'value' ) : ?>
<?php endif; ?>
@RostiMelk
Copy link
Owner

Hi!

It is a bit hard to generate data for the select field since it can be used for so many things.
As of now it will generate an if statement for the value selected.

You can extend this for multiple values with multiple if statements or an else if.

I get that this may not be ideal for a scenarios, and I will try to figure out a better way to generate code for fields like these.

Let me know if something is unclear.

@RostiMelk RostiMelk added enhancement New feature or request Output of field code Output of generated field code is not working or needs improvement labels Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Output of field code Output of generated field code is not working or needs improvement
Projects
None yet
Development

No branches or pull requests

2 participants