ACF & PHP-API (WordPress)
Zie ook
the_field()
Voorbeeld:
<?php # # ############################################################### # Set variables & load libraries ############################################################### # echo "Set variables & load libraries...\n"; $path="/var/www/example.com/"; require_once($path . "/wp-load.php"); ############################################################### # ACF - the_field ############################################################### # echo "ACF - the_field...\n"; the_field("hero_text",7); ?>
Uitvoer:
$ php 110.php Set variables & load libraries... ACF - get_field... Eet more chips!
Bronnen
- https://www.advancedcustomfields.com/resources/
- https://www.advancedcustomfields.com/resources/#functions - Alle PHP-functies bij elkaar!