Kono problem nei! ACF Free version eo kaj hobe. Apnake shudhu ekta extra plugin install korte hobe:
"ACF to REST API" plugin install korun:
Eita install korle automatic sob ACF fields REST API response e show korbe. Kono extra settings lagbe na.
Ar ekta jinish - apni ki functions.php e 'show_in_rest' => true add korechen? Ami check kori API te products ashche kina:
API te ekhono "products" post type dekhacche na. Mane functions.php e ekhono 'show_in_rest' => true add hoy ni.
Apnake 2ta kaj korte hobe:
Kaj 1: functions.php edit korun - apnar register_post_type code e 'show_in_rest' => true add korun. Apnar code ta probably erokom ache:
register_post_type('products', array(
'public' => true,
'label' => 'Products',
...
));Ekhane add korun:
register_post_type('products', array(
'public' => true,
'show_in_rest' => true, // <-- EI LINE TA ADD KORUN
'label' => 'Products',
...
));Kaj 2: "ACF to REST API" plugin install korun (upore ja bollam)
Ei duita korle amake bolen, ami API check kore site build shuru korbo. Ar jodi apni ekhon na korte chan, tahole ami mock data diye site ta baniye dei - pore WordPress fix korle automatic real data asbe.
Thik ache, apni WordPress setup korun. Hoye gele amake bolen, ami API check korbo ar site build shuru korbo.
You can send messages while the preview loads