Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

qdungeng on "get post from slect field ACF"

$
0
0

Dear friend

I did install ACF (advanced Custom fields) and Create Select Field "Hotel_in", and more choices :
SG : Saigon
HN : Hanoi
HC : Hue City

...

Please help me how to get all post title and URL from single field and get label from single choices .

I did use :

if(get_field('hotel_in') == "HG")
{
//...
}

But it not working. Please help me.
Thanks


Viewing all articles
Browse latest Browse all 8245

Trending Articles