I'm trying to use ACF to output different salary amounts for a job listing board.
E.g:
Select box option in ACF for salary type ("competitive", per day, per annum etc). Looks like this:
Then I have conditional fields. So if "P.A" is selected it shows the P.A field:
I have a bunch of these conditional fields for the different select box options.
My question is:
How do I add these to an if statement so that the correct field is shown based on the content that was supplied?
E.g
if job_salary was selected as "competitive" =
echo "competitive"
else if job_salary was selected as "p.a" =
echo job_salary_singular
else if job_salary was selected as "p.a range" =
echo job_range_start " to " job_range_end
Hopefully this makes sense. This is the code I have at the moment, which just outputs the type of salary entered (e.g, competitive, P.A, Per Day Range) as text.